import { useState } from 'react' import Footer from '~/components/Footer' import ChatButton from '~/components/chat/ChatButton' import ChatModal from '~/components/chat/ChatModal' import useServiceInstalledStatus from '~/hooks/useServiceInstalledStatus' import { SERVICE_NAMES } from '../../constants/service_names' import { Link, router } from '@inertiajs/react' import { IconArrowLeft } from '@tabler/icons-react' import classNames from 'classnames' export default function AppLayout({ children, compact = false, }: { children: React.ReactNode /** * Compact header for focused tool pages (e.g. Drug Reference): a small inline * logo + title instead of the full-height branding block, so the tool's own * controls sit near the top of the viewport instead of ~230px down. */ compact?: boolean }) { const [isChatOpen, setIsChatOpen] = useState(false) const aiAssistantInstalled = useServiceInstalledStatus(SERVICE_NAMES.OLLAMA) return (
Back to Home
)}