import type { ReactNode } from "react"; import Span from "@moduletrace/twui/layout/Span"; import Stack from "@moduletrace/twui/layout/Stack"; type Props = { children: ReactNode; /** * Shown instead when the list has no rows. */ empty?: string; is_empty?: boolean; }; /** * A framed list of rows inside a settings group. */ export default function SettingsList({ children, empty, is_empty }: Props) { return ( {children} {is_empty && empty ? ( {empty} ) : null} ); }