import clsx from 'clsx'; import type { PropsWithChildren } from 'react'; type Props = PropsWithChildren<{ className?: string; /** Label */ label: React.ReactNode; show?: boolean; suffix?: React.ReactNode; }>; const SettingItem: FC = ({ children, className, label, show = true, suffix }: Props) => { if (!show) return null; return (
{label} {suffix}
{children}
); }; export default SettingItem;