import { ReactNode } from "react"; import { useTranslationV2 } from "renderer/hooks/use-translation.hook"; type Props = { id?: string; className?: string; title?: string; minorTitle?: string; description?: string; children?: ReactNode; os?: "win32" | "linux"; }; export function SettingContainer({ id, className, title, minorTitle, description, children, os }: Props) { const t = useTranslationV2(); if (os && os !== window.electron.platform) { return undefined; } return (
{t.text(description)}
} {children}