import React from 'react' import { VideoThumbnail } from './VideoThumbnail' export type VideoFile = { file_id: string filename: string camera_name: string file_size_bytes: number created_at: string status: string format: string is_streamable?: boolean needs_conversion?: boolean metadata?: { duration_seconds: number; width: number; height: number; fps: number; codec: string } } export type VideoCardProps = { video: VideoFile onClick?: (video: VideoFile) => void showMetadata?: boolean className?: string } export const VideoCard: React.FC = ({ video, onClick }) => { return (
onClick(video) : undefined} >
{video.camera_name}
{video.filename}
) } export default VideoCard