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