import React from 'react'; import { Group } from '/@/shared/components/group/group'; import { Icon } from '/@/shared/components/icon/icon'; import { Stack } from '/@/shared/components/stack/stack'; import { Text } from '/@/shared/components/text/text'; import { Tooltip } from '/@/shared/components/tooltip/tooltip'; interface SettingsOptionProps { control: React.ReactNode; description?: React.ReactNode | string; note?: string; title: React.ReactNode | string; } export const SettingsOptions = ({ control, description, note, title }: SettingsOptionProps) => { return ( <> {title} {note && ( )} {React.isValidElement(description) ? ( description ) : ( {description} )} {control} ); };