diff --git a/components/ui/Spinner.tsx b/components/ui/Spinner.tsx index 6dc37e4..a3fb412 100644 --- a/components/ui/Spinner.tsx +++ b/components/ui/Spinner.tsx @@ -1,23 +1,38 @@ -const Spinner = () => ( -
- - Loading... -
-); +import { FC } from 'react'; + +interface SpinnerProps { + size?: 'xs' | 'sm' | 'md' | 'lg'; +} + +const Spinner: FC = ({ size = 'md' }) => { + const spinnerWidths: Record, `w-[${number}px]`> = { + xs: 'w-[10px]', + sm: 'w-[20px]', + md: 'w-[100px]', + lg: 'w-[150px]', + }; + + return ( +
+ + Loading... +
+ ); +}; export default Spinner;