'use client'; import { useState } from 'react'; import PageBuilder from './PageBuilder'; import SettingsEditor from './SettingsEditor'; interface Props { onLogout: () => void; } type Tab = 'pages' | 'settings'; export default function AdminDashboard({ onLogout }: Props) { const [activeTab, setActiveTab] = useState('pages'); const [saving, setSaving] = useState(false); async function handleLogout() { await fetch('/api/admin/auth', { method: 'DELETE' }); onLogout(); } async function handleReload() { setSaving(true); try { await fetch('/api/admin/reload', { method: 'POST' }); } finally { setSaving(false); } } return (

Immich Folio

↗ Site
{activeTab === 'pages' && } {activeTab === 'settings' && }
); }