File size: 511 Bytes
cdc337a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import { LoaderCircle } from "lucide-react";
import type { ComponentProps } from "react";
import { useTranslation } from "react-i18next";
import { cn } from "@/shared/lib/cn";
function Spinner({ className, ...props }: ComponentProps<typeof LoaderCircle>) {
const { t } = useTranslation();
return (
<LoaderCircle
role="status"
aria-label={t("common.loading")}
className={cn("size-4 animate-spin text-muted-foreground", className)}
{...props}
/>
);
}
export { Spinner };
|