spacedrive/interface/components/Loader.tsx
Utku d60789e588
Make eslint happy (#2198)
* eslint maxing

* @sd/ui too
2024-03-12 20:41:41 +00:00

22 lines
408 B
TypeScript

import clsx from 'clsx';
import { Puff } from 'react-loading-icons';
import { useIsDark } from '~/hooks';
interface Props {
className?: string;
color?: string;
}
export function Loader({ className }: Props) {
const isDark = useIsDark();
return (
<Puff
stroke={isDark ? '#2599FF' : '#303136'}
strokeOpacity={4}
strokeWidth={5}
speed={1}
className={clsx('size-7', className)}
/>
);
}