import React from "react"; import { Box, List, ListItem, ListItemText, ListSubheader, } from "@mui/material"; interface ItemProps { label: React.ReactNode; extra?: React.ReactNode; } export const SettingItem: React.FC = (props) => { const { label, extra, children } = props; const primary = !extra ? ( label ) : ( {label} {extra} ); return ( {children} ); }; export const SettingList: React.FC<{ title: string }> = (props) => ( {props.title} {props.children} );