import clsx from 'clsx'; import type { CSSProperties, PropsWithChildren, ReactNode } from 'react'; import { settingRow } from './share.css'; export type SettingRowProps = PropsWithChildren<{ name: ReactNode; desc: ReactNode; style?: CSSProperties; onClick?: () => void; spreadCol?: boolean; 'data-testid'?: string; disabled?: boolean; className?: string; }>; export const SettingRow = ({ name, desc, children, onClick, style, spreadCol = true, disabled = false, className, ...props }: PropsWithChildren) => { return (
{name}
{desc}
{spreadCol ?
{children}
: children}
); };