import * as React from 'react'; import ListItem from '@mui/material/ListItem'; import FormLabel from '@mui/material/FormLabel'; import { SxProps, Theme } from '@mui/material/styles'; interface ListHeaderProps { children: React.ReactNode; sx?: SxProps; } function ListHeader({ sx = [], children }: ListHeaderProps) { return ( {children} ); } export default function PassingSxProp() { return ( ({ color: 'info.main', ...theme.typography.overline, })} > Header ); }