{title}
{subtitle && ({subtitle}
)}{right}
}
import { Link, useLocation } from "react-router-dom" import type { ReactNode } from "react" type Props = { children: ReactNode title?: string subtitle?: ReactNode right?: ReactNode } export function Layout({ children, title, subtitle, right }: Props) { const location = useLocation() const isHome = location.pathname === "/" return (
{subtitle}
)}