CoastalCommitsPastes/client/app/components/settings-group/index.tsx

23 lines
515 B
TypeScript
Raw Normal View History

'use client';
2022-11-09 21:38:05 -05:00
import { Fieldset, Text, Divider } from "@geist-ui/core/dist"
import styles from "./settings-group.module.css"
type Props = {
title: string
children: React.ReactNode | React.ReactNode[]
}
const SettingsGroup = ({ title, children }: Props) => {
return (
2022-11-14 20:32:32 -05:00
<Fieldset width={'100%'}>
<Fieldset.Content>
<Text h4>{title}</Text>
</Fieldset.Content>
<Divider />
<Fieldset.Content className={styles.content}>{children}</Fieldset.Content>
</Fieldset>
)
}
export default SettingsGroup