import React, { ReactNode } from "react"; import { Box, List, ListItem, ListItemButton, ListItemText, ListSubheader, } from "@mui/material"; import { ChevronRightRounded } from "@mui/icons-material"; interface ItemProps { label: ReactNode; extra?: ReactNode; children?: ReactNode; secondary?: ReactNode; onClick?: () => void; } export const SettingItem: React.FC = (props) => { const { label, extra, children, secondary, onClick } = props; const clickable = !!onClick; const primary = ( {label} {extra ? extra : null} ); return clickable ? ( ) : ( {children} ); }; export const SettingList: React.FC<{ title: string; children: ReactNode; }> = (props) => ( { return { color: palette.text.primary, }; }, ]} disableSticky > {props.title} {props.children} );