import { type JSX, Show } from 'solid-js';
import { cn } from '../utils/cn';
export interface SettingsGroupProps {
/** Small section heading shown above the card. */
heading: string;
/** Optional muted description under the heading. */
description?: string;
/** The stacked `SettingItem` rows. */
children: JSX.Element;
class?: string;
}
/**
* A settings section: a small heading + optional muted description over a bordered,
* rounded card that stacks `SettingItem` rows with hairline dividers between them.
* Host-agnostic chrome: the SAME group drops into a modal or a full settings page;
* only the content (the rows) changes per app.
*/
export function SettingsGroup(props: SettingsGroupProps): JSX.Element {
return (
{props.description}
{props.heading}