mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-17 21:53:05 +00:00
13 lines
313 B
TypeScript
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>
|
|
);
|
|
};
|