15 lines
441 B
TypeScript
15 lines
441 B
TypeScript
"use client"
|
|
|
|
import { useTranslation } from "@/components/i18n/locale-provider"
|
|
import { cn } from "@/lib/utils"
|
|
import { Loader2Icon } from "lucide-react"
|
|
|
|
function Spinner({ className, ...props }: React.ComponentProps<"svg">) {
|
|
const { t } = useTranslation()
|
|
return (
|
|
<Loader2Icon data-slot="spinner" role="status" aria-label={t("Loading")} className={cn("size-4 animate-spin", className)} {...props} />
|
|
)
|
|
}
|
|
|
|
export { Spinner }
|