feat(video-settings): add SettingsGroup component and update SettingItem divider default

Update SettingItem to have divider=false by default and introduce new SettingsGroup component for better organization
This commit is contained in:
icarus 2025-10-12 04:54:17 +08:00
parent 36df06db75
commit 377b2b796f

View File

@ -1,7 +1,11 @@
import { cn, Divider } from '@heroui/react'
import { PropsWithChildren, ReactNode } from 'react'
export const SettingItem = ({ children, divider = true }: PropsWithChildren<{ divider?: boolean }>) => {
export const SettingsGroup = ({ children }: PropsWithChildren) => {
return <div className="rounded-2xl bg-foreground-200">{children}</div>
}
export const SettingItem = ({ children, divider = false }: PropsWithChildren<{ divider?: boolean }>) => {
return (
<>
<div className="mb-2">{children}</div>