chat / client /src /components /Chat /Messages /Content /InProgressCall.tsx
Zhitomir's picture
chat init
aa2e6af
Raw
History Blame Contribute Delete
352 Bytes
import CancelledIcon from './CancelledIcon';
export default function InProgressCall({
error,
isSubmitting,
progress,
children,
}: {
error?: boolean;
isSubmitting: boolean;
progress: number;
children: React.ReactNode;
}) {
if ((!isSubmitting && progress < 1) || error) {
return <CancelledIcon />;
}
return <>{children}</>;
}