/** * BoostMedia AI Content Generator Admin - Loader Component * * @package BoostMedia_AI * @license GPL-2.0-or-later */ import { Loader2 } from 'lucide-react' import { t } from '../../lib/i18n' interface LoaderProps { size?: 'sm' | 'md' | 'lg' text?: string fullScreen?: boolean } const sizeClasses = { sm: 'w-4 h-4', md: 'w-8 h-8', lg: 'w-12 h-12', } export function Loader({ size = 'md', text, fullScreen = false }: LoaderProps) { const content = (
{text &&

{text}

}
) if (fullScreen) { return (
{content}
) } return (
{content}
) } export function PageLoader() { return (
) } export function InlineLoader({ text }: { text?: string }) { return ( {text && {text}} ) }