import { styled } from "@mui/material"; import * as React from "react"; export const PrefGroup = styled("div", { attrs: { role: "table" } })` display: flex; flex-direction: column; gap: 20px; `; const PrefRow = styled("div")` display: flex; flex-direction: row; > :first-child { flex: 1 0 40%; display: flex; flex-direction: column; justify-content: ${(props) => (props.alignTop ? "normal" : "center")}; } > :last-child { flex: 1 0 calc(60% - 50px); display: flex; flex-direction: column; justify-content: ${(props) => (props.alignTop ? "normal" : "center")}; } @media (max-width: 1000px) { flex-direction: column; gap: 10px; > :first-child, > :last-child { flex: unset; } > :last-child { .MuiFormControl-root { margin: 0; } } } `; export const Pref = (props) => (
{props.title} {props.subtitle && ({props.subtitle})}
{props.description && (
{props.description}
)}
{props.children}
);