2022-11-15 23:50:54 -05:00
|
|
|
"use client"
|
|
|
|
import Card from "@components/card"
|
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 (
|
2022-11-15 23:50:54 -05:00
|
|
|
<Card>
|
|
|
|
<h4>{title}</h4>
|
|
|
|
<hr />
|
|
|
|
<div className={styles.content}>{children}</div>
|
|
|
|
</Card>
|
2022-04-22 01:01:59 -04:00
|
|
|
)
|
2022-04-20 01:14:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export default SettingsGroup
|