Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | import React from 'react'; import { Box, Typography, useTheme } from '@mui/material'; export interface Props { children: string; } export default function Note({ children }: Props): JSX.Element { const theme = useTheme(); return ( <Box sx={{ borderRadius: 8, backgroundColor: theme.palette.neutral[200], marginBottom: theme.spacing(3), padding: theme.spacing(2), }} > <Typography component='p'>{children}</Typography> </Box> ); } |