import React from 'react' ; import { Grid , Typography } from '@mui/material' ; import useStyles from './ToastContent.styles' ; type ToastContentProps = { message : string ; description : string ; } ; const ToastContent = ( { message , description } ) => { const classes = useStyles ( ) ; return ( < > < Grid container spacing = { 1 } > < Grid item xs = { 12 } > < Typography component = "span" className = { classes . message } > { message } < /Typography> < /Grid> < Grid item xs = { 12 } > < Typography component = "span" className = { classes . description } > { description } < /Typography> < /Grid> < /Grid> < />); } ; export default ToastContent ;