import type { InputAudioTrack, InputFormat, InputVideoTrack, MetadataTags, } from 'mediabunny'; import React from 'react'; import {Table, TableBody, TableCell, TableRow} from '@/components/ui/table'; import type {Dimensions} from '~/lib/calculate-new-dimensions-from-dimensions'; import {formatBytes} from '~/lib/format-bytes'; import {formatSeconds} from '~/lib/format-seconds'; import { renderHumanReadableAudioCodec, renderHumanReadableVideoCodec, } from '~/lib/render-codec-label'; import {MetadataDisplay} from './MetadataTable'; import {Skeleton} from './ui/skeleton'; export const ContainerOverview: React.FC<{ readonly dimensions: Dimensions | null | undefined; readonly durationInSeconds: number | null | undefined; readonly videoCodec: InputVideoTrack['codec'] | null; readonly audioCodec: InputAudioTrack['codec'] | null | undefined; readonly size: number | null; readonly fps: number | null | undefined; readonly container: InputFormat | null; readonly isHdr: boolean | undefined; readonly metadata: MetadataTags | null; readonly isAudioOnly: boolean; readonly sampleRate: number | null; }> = ({ container, dimensions, videoCodec, durationInSeconds, audioCodec, size, fps, isHdr, metadata, isAudioOnly, sampleRate, }) => { return (