2024-07-10 18:57:27 -05:00
|
|
|
import { Flex, Progress } from '@radix-ui/themes';
|
|
|
|
|
import { useProgress } from '@react-three/drei';
|
2024-07-10 13:31:21 -05:00
|
|
|
import { tankIcon } from '../../../../../../core/blitzkit/tankIcon';
|
|
|
|
|
|
|
|
|
|
export function TankSandboxLoader({ id }: { id: number }) {
|
2024-07-10 18:57:27 -05:00
|
|
|
const data = useProgress();
|
|
|
|
|
|
2024-07-10 13:31:21 -05:00
|
|
|
return (
|
|
|
|
|
<Flex width="100%" height="100%" align="center" justify="center">
|
2024-07-10 18:57:27 -05:00
|
|
|
<img
|
|
|
|
|
src={tankIcon(id)}
|
|
|
|
|
style={{ height: '60%', filter: 'blur(4px) grayscale(1)' }}
|
|
|
|
|
/>
|
|
|
|
|
<Progress
|
|
|
|
|
size="3"
|
|
|
|
|
value={data.progress}
|
|
|
|
|
style={{ position: 'absolute', width: 128 }}
|
|
|
|
|
/>
|
2024-07-10 13:31:21 -05:00
|
|
|
</Flex>
|
|
|
|
|
);
|
|
|
|
|
}
|