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