import type { ReactNode } from "react"; import Row from "@moduletrace/twui/layout/Row"; import Stack from "@moduletrace/twui/layout/Stack"; import H1 from "@moduletrace/twui/layout/H1"; import Span from "@moduletrace/twui/layout/Span"; type Props = { title: string; description: string; /** * Controls at the end of the header, e.g. a settings link. */ action?: ReactNode; }; /** * Same 64px header as a conversation, so moving between bots and settings * doesn't shift the page. */ export default function SettingsPaneHeader({ title, description, action, }: Props) { return (

{title}

{description}
{action ? ( {action} ) : null}
); }