Download client/src/components/Chat/Messages/Content/InProgressCall.tsx from Zhitomir/chat: direct link, hf CLI and curl.
- Browser
- Download file 352 Bytes
-
https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/components/Chat/Messages/Content/InProgressCall.tsx
- Command line
-
hf download hf://spaces/Zhitomir/chat/client/src/components/Chat/Messages/Content/InProgressCall.tsx
-
curl -L -o InProgressCall.tsx https://huggingface.co/spaces/Zhitomir/chat/resolve/main/client/src/components/Chat/Messages/Content/InProgressCall.tsx
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}</>; | |
| } | |