jbilcke-hf's picture
jbilcke-hf HF staff
add linter and prettifier
c1f12bf
raw
history blame
No virus
430 Bytes
import { CgSpinnerTwoAlt } from 'react-icons/cg'
import { cn } from '@/lib/utils'
export function ActivitySpinner({
className = '',
isBusy = false,
color = '',
}: {
className?: string
isBusy?: boolean
color?: string
}) {
return (
<CgSpinnerTwoAlt
className={cn(
`h-2 w-2`,
className,
isBusy ? 'animate-spin opacity-100' : 'opacity-0'
)}
style={{ color }}
/>
)
}