nomadcode/apps/web/src/components/settings/SettingsSection.tsx
toki 3a4e5be1e0 chore: import nomadcode-web into apps/web
git-subtree-dir: apps/web
git-subtree-mainline: 9212ed02ac
git-subtree-split: 5d65cbf2d5
2026-05-21 13:35:30 +09:00

19 lines
478 B
TypeScript

import type { ReactNode } from "react";
interface SettingsSectionProps {
title: string;
description?: string;
children: ReactNode;
}
export function SettingsSection({ title, description, children }: SettingsSectionProps) {
return (
<section className="settings-section">
<header>
<h2>{title}</h2>
{description ? <p>{description}</p> : null}
</header>
<div className="settings-section__body">{children}</div>
</section>
);
}