import { t } from '@vegaprotocol/i18n'; import { Switch, ToastPositionSetter } from '@vegaprotocol/ui-toolkit'; import { useThemeSwitcher } from '@vegaprotocol/react-helpers'; import { useTelemetryApproval } from '../../lib/hooks/use-telemetry-approval'; import type { ReactNode } from 'react'; export const Settings = () => { const { theme, setTheme } = useThemeSwitcher(); const [isApproved, setIsApproved] = useTelemetryApproval(); return (
setTheme()} checked={theme === 'dark'} /> setIsApproved(isOn)} checked={isApproved} />
); }; const SettingsGroup = ({ label, helpText, children, }: { label: string; helpText?: string; children: ReactNode; }) => { return (
{helpText &&

{helpText}

}
{children}
); };