import React, { useState } from 'react' import { Link, useLocation } from 'react-router-dom' import { useTranslation } from 'react-i18next' import { Sparkles, Menu, X } from 'lucide-react' import i18n from '@/i18n/i18n' export const PublicLayout: React.FC<{ children: React.ReactNode }> = ({ children }) => { const { t } = useTranslation() const location = useLocation() const [mobileMenuOpen, setMobileMenuOpen] = useState(false) const currentLang = i18n.language?.startsWith('fr') ? 'fr' : 'en' const isActive = (path: string) => location.pathname.startsWith(path) const setLang = (lang: string) => { i18n.changeLanguage(lang) } const LangToggle = ({ size = 'md' }: { size?: 'sm' | 'md' }) => (
) return (
{children}
) }