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