import { FunctionalComponent } from 'preact';
const HorizontalLine: FunctionalComponent<{ index: number; length: number }> =
({ index, length }) =>
index < length - 1 ? (
) : null;
export const PreferencesSegment: FunctionalComponent = ({ children }) => (
{children}
);
export const PreferencesGroup: FunctionalComponent = ({ children }) => (
{!Array.isArray(children)
? children
: children.map((c, i, arr) => (
<>
{c}
>
))}
);
export const PreferencesPane: FunctionalComponent = ({ children }) => (
);