import React, { ReactNode } from "react" export function Video({ video = "", isBusy = false, progress = 0, status = "", error = "", children = undefined, }: { video: string isBusy: boolean progress: number status: string error: ReactNode children?: ReactNode } = { video: "", isBusy: false, progress: 0, status: "", error: "", children: undefined, }) { const placeholder =
{progress}%
{ status ? status : error ? {error} : placeholder // to prevent layout changes }