{title}
{description ? ({description}
) : null}/**
* Shared settings chrome — the shell + row primitives used by the settings
* hub (`/settings`) and every dedicated setting page under it
* (`/settings/reading`, `/settings/notifications`, `/settings/account`,
* `/settings/legal`).
*
* All presentational, no hooks — safe to render from server components. The
* hub is a menu of `NavRow`s that route into these pages; each page frames
* its controls with `SettingsShell` (back link + title) so the header reads
* consistently everywhere. `Section` / `Row` are the plain, card-less
* building blocks the individual pages compose.
*/
import Link from "next/link";
import { ChevronLeft, ChevronRight } from "lucide-react";
/** Page frame: back link + title (+ optional description) over the content. */
export function SettingsShell({
backHref,
backLabel,
title,
description,
children,
}: {
backHref: string;
backLabel: string;
title: string;
description?: string;
children: React.ReactNode;
}) {
return (
{description}
{title}
{description ? (
{description}
) : null}{description}
) : null}