"use client" import { useState } from "react" import { IconArrowLeft } from "@tabler/icons-react" import { AlertTriangle, ChevronDown } from "lucide-react" import Link from "next/link" import { useRestart } from "@/lib/restart-context" import { Button } from "@/components/ui/button" import { Separator } from "@/components/ui/separator" import { SidebarTrigger } from "@/components/ui/sidebar" import { ThemeToggle } from "@/components/theme-toggle" export function SiteHeader({ title, backHref, }: { title: string backHref?: string }) { const { reasons } = useRestart() const [expanded, setExpanded] = useState(false) return (
{backHref && ( )}

{title}

{reasons.length > 0 && (
{expanded && ( )}
)}
) }