/* Copyright 2026 Marimo. All rights reserved. */ import { cva, type VariantProps } from "class-variance-authority"; import { Loader2Icon } from "lucide-react"; import React from "react"; import { cn } from "@/utils/cn"; const spinnerVariants = cva("animate-spin", { variants: { centered: { true: "m-auto", }, size: { small: "size-4", medium: "size-12", large: "size-20", xlarge: "size-20", }, }, defaultVariants: { size: "medium", }, }); const Spinner = React.forwardRef< SVGSVGElement, React.SVGProps & VariantProps >(({ className, children, centered, size, ...props }, ref) => ( )); Spinner.displayName = "Spinner"; export { Spinner };