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