import { __ } from '../lib/i18n'; type ScreenLoaderProps = { /** * `page` — initial shell / full view (centered vertically in the content area). * `section` — embedded panels with a modest minimum height. */ variant?: 'page' | 'section'; className?: string; }; /** Subtle ring spinner for use inside existing flex-centered containers (e.g. charts). */ export function LoadingSpinner({ className = '' }: { className?: string }) { return (
); } function ShellSkeleton() { return ( ); } /** * Matches PHP placeholder (admin-react-shell.css): soft skeleton + spinner on admin gray background. */ export function ScreenLoader({ variant = 'page', className = '' }: ScreenLoaderProps) { const section = variant === 'section'; const rootClass = [ 'llmagnet-react-shell', section ? 'llmagnet-react-shell--section' : '', className, ] .filter(Boolean) .join(' '); return (