import { Button } from '@/components/ui/button'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; import { Separator } from '@/components/ui/separator'; import FooterEditor from '@/layouts/footer/footer-editor'; import FooterPreview from '@/layouts/footer/footer-preview'; import { SharedData } from '@/types/global'; import { usePage } from '@inertiajs/react'; import { Edit, Eye, X } from 'lucide-react'; import { useState } from 'react'; import { SystemProps } from '../index'; const Footer = () => { const { props } = usePage(); const { footer, translate } = props; const { settings, button } = translate; const [showEditor, setShowEditor] = useState(false); if (!footer) { return (

{settings.footer_config_not_found}

); } return (
{settings.live_footer_preview} {settings.interactive_preview} {footer.title} ({footer.slug})
{showEditor ? ( ) : ( )}
{showEditor ? ( ) : ( )}
); }; export default Footer;