mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-31 20:43:38 +00:00
Bundle Copy
This commit is contained in:
12
tgui/packages/tgui_ch/interfaces/common/Loader.tsx
Normal file
12
tgui/packages/tgui_ch/interfaces/common/Loader.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
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>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user