20 lines
422 B
TypeScript
20 lines
422 B
TypeScript
import { Loader2Icon } from "lucide-react"
|
|
|
|
import { useTranslation } from "@/lib/translations"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
function Spinner({ className, ...props }: React.ComponentProps<"svg">) {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<Loader2Icon
|
|
role="status"
|
|
aria-label={t("Loading")}
|
|
className={cn("size-4 animate-spin", className)}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export { Spinner }
|