import React from 'react'; import { Group, Stack } from '@mantine/core'; import { RiInformationLine } from 'react-icons/ri'; import { Text, Tooltip } from '/@/renderer/components'; interface SettingsOptionProps { control: React.ReactNode; description?: React.ReactNode | string; note?: string; title: React.ReactNode | string; } export const SettingsOptions = ({ title, description, control, note }: SettingsOptionProps) => { return ( <> {title} {note && ( )} {React.isValidElement(description) ? ( description ) : ( {description} )} {control} ); }; SettingsOptions.defaultProps = { description: undefined, note: undefined, };