{mounted && (
Palette ({colorScheme})
)}
{Object.entries(palette).map(([key, nestedObj]) => {
if (typeof nestedObj === 'string' && mounted) {
return ;
}
return (
{key}
{key !== 'mode' && key !== 'colorScheme' && (
{Object.entries(nestedObj).map(([nestedKey, value]) => (
))}
)}
);
})}
);
}
function TypographyScale() {
const { typography } = useTheme();
return (