mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-28 21:42:27 +08:00
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:
parent
36df06db75
commit
377b2b796f
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user