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