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