Files
CHOMPStation2/tgui/packages/tgui_ch/interfaces/common/Loader.tsx
2023-05-23 17:43:01 +02:00

13 lines
313 B
TypeScript

import { Box } from '../../components';
import { clamp01 } from 'common/math';
export const Loader = (props) => {
const { value } = props;
return (
<div className="AlertModal__Loader">
<Box className="AlertModal__LoaderProgress" style={{ width: clamp01(value) * 100 + '%' }} />
</div>
);
};