import React from 'react'; import { motion } from 'framer-motion'; import { supabase } from '../../supabaseClient'; // --- Icons --- const HomeIcon = () => (); const BriefcaseIcon = () => (); const MessageSquareIcon = () => (); // ✅ UPDATED: Complete, robust Settings Icon (Gear) const SettingsIcon = () => ( ); const BriefcasePlusIcon = () => (); const ClustersIcon = () => (); const LogoutIcon = () => (); export default function AdminLayout({ children, activeTab, setActiveTab, onNavigate }) { // Global Logout Handler const handleLogout = async () => { const { error } = await supabase.auth.signOut(); if (error) console.error('Error logging out:', error.message); if (onNavigate) onNavigate('login'); }; return (