feat: muted words
This commit is contained in:
parent
3c74c8c5db
commit
603bd35b4a
25 changed files with 282 additions and 87 deletions
21
src/pages/secondary/GeneralSettingsPage/SettingItem.tsx
Normal file
21
src/pages/secondary/GeneralSettingsPage/SettingItem.tsx
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import { cn } from '@/lib/utils'
|
||||
import { forwardRef, HTMLProps } from 'react'
|
||||
|
||||
const SettingItem = forwardRef<HTMLDivElement, HTMLProps<HTMLDivElement>>(
|
||||
({ children, className, ...props }, ref) => {
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
'flex justify-between select-none items-center px-4 min-h-9 [&_svg]:size-4 [&_svg]:shrink-0',
|
||||
className
|
||||
)}
|
||||
{...props}
|
||||
ref={ref}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
)
|
||||
SettingItem.displayName = 'SettingItem'
|
||||
export default SettingItem
|
||||
Loading…
Add table
Add a link
Reference in a new issue