2023-02-02 16:03:22 -08:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import { ProgressBar } from 'soapbox/components/ui';
|
|
|
|
|
|
|
|
interface IChatPendingUpload {
|
|
|
|
progress: number
|
|
|
|
}
|
|
|
|
|
|
|
|
/** Displays a loading thumbnail for an upload in the chat composer. */
|
|
|
|
const ChatPendingUpload: React.FC<IChatPendingUpload> = ({ progress }) => {
|
|
|
|
return (
|
2023-02-03 10:03:45 -08:00
|
|
|
<div className='relative isolate inline-flex h-24 w-24 items-center justify-center overflow-hidden rounded-lg bg-gray-200 p-4 dark:bg-primary-900'>
|
2023-02-02 16:03:22 -08:00
|
|
|
<ProgressBar progress={progress} size='sm' />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default ChatPendingUpload;
|