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 } export function SettingContainer({id, className, title, minorTitle, description, children}: Props) { const t = useTranslation(); return (
{ title &&

{t(title)}

} { minorTitle &&

{t(minorTitle)}

} { description &&

{t(description)}

} { children }
) }