import React from 'react';
import { useTranslation } from 'react-i18next';
import {
Table,
Button,
DatePicker,
Space,
Typography,
Card,
Segmented,
Row,
Col,
} from 'antd';
import {
DownloadOutlined,
VideoCameraOutlined,
CalendarOutlined,
SearchOutlined
} from '@ant-design/icons';
const { Text, Title } = Typography;
const { RangePicker } = DatePicker;
export default function Downloads() {
const { t } = useTranslation();
const columns = [
{
title: t('video.fileDetails'),
key: 'file',
render: (record: any) => (
ROB_{record.id}_RAW.mp4
Cloud-Storage-01
),
},
{
title: t('video.sourceDevice'),
dataIndex: 'deviceName',
key: 'deviceName',
render: (text: string) => {text},
},
{
title: t('video.startEndTime'),
key: 'duration',
render: (record: any) => (
{record.startTime.split(' ')[1]}
{record.endTime.split(' ')[1]}
),
},
{
title: t('video.capacity'),
dataIndex: 'size',
key: 'size',
render: (text: string) => {text},
},
{
title: t('roles.actions'),
key: 'action',
align: 'right' as const,
render: () => (
}
style={{ fontSize: 11, fontWeight: 'bold' }}
>
{t('common.download')}
),
},
];
return (
{t('video.videoReplayCenter')}
{t('video.timeSpan')}
} style={{ borderRadius: 2 }}>
{t('video.onlineSearch')}
({ ...v, key: v.id }))}
pagination={{ pageSize: 12, size: 'small' }}
/>
);
}