import { Button } from "../ui/primitives"; import { formatBytes } from "./format"; import type { VideoAssetDto } from "../../lib/video-types"; /** Confirm modal before DELETE /video/:id (media.manage-gated upstream). */ export function DeleteVideoModal({ asset, busy, onCancel, onConfirm, }: { asset: VideoAssetDto; busy: boolean; onCancel: () => void; onConfirm: () => void; }): React.ReactElement { return (
e.stopPropagation()} >

Delete video

This removes the asset, its processing jobs, and its probe metadata from the workspace library. Published posts that reference it are not deleted.

{asset.storageKey}

{formatBytes(asset.sizeBytes)}

); }