import { cn } from '@/lib/utils'; import { SharedData } from '@/types/global'; import { usePage } from '@inertiajs/react'; const AppLogo = ({ className, theme }: { theme?: 'light' | 'dark'; className?: string }) => { const { system } = usePage().props; if (theme && theme === 'dark') { return {system.fields.name; } if (theme && theme === 'light') { return {system.fields.name; } return ( <> {system.fields.name {system.fields.name ); }; export default AppLogo;