import React from 'react'; import type { SpinnerSize } from '@/components/elements/Spinner'; import Spinner from '@/components/elements/Spinner'; import { cn } from '@/lib/cn'; interface Props { visible: boolean; fixed?: boolean; size?: SpinnerSize; // Backdrop opacity from 0 to 1; defaults to the `--spinner-overlay-opacity` theme token. backgroundOpacity?: number; children?: React.ReactNode; } const SpinnerOverlay = ({ size, fixed, visible, backgroundOpacity, children }: Props) => { if (!visible) { return null; } return (
{children}
}