UNPKG

react-garden

Version:

React + TypeScript + ThreeJS app using Material UI on NextJS, Apollo Client, GraphQL + WordPress REST APIs, for ThreeD web development.. a part of the threed.ai code family.

26 lines (21 loc) 874 B
// ** MUI Imports import Box from '@mui/material/Box' import Button from '@mui/material/Button' import Typography from '@mui/material/Typography' // ** Icons Imports import CheckCircleOutline from 'mdi-material-ui/CheckCircleOutline' // ** Third Party Components import toast from 'react-hot-toast' const ToastSuccess = () => { return ( <Box sx={{ display: 'flex', textAlign: 'center', alignItems: 'center', flexDirection: 'column' }}> <CheckCircleOutline sx={{ mb: 2, fontSize: '2rem' }} /> <Typography sx={{ mb: 4, fontWeight: 600 }}>Success</Typography> <Typography sx={{ mb: 3 }}>Creates a notification with an animated checkmark.</Typography> <Button sx={{ mb: 8 }} color='success' variant='contained' onClick={() => toast.success('Successfully toasted!')}> Success </Button> </Box> ) } export default ToastSuccess