import { useSnackbar } from 'src/components/snackbar';
import { Button } from '@mui/material';
function App() {
const { enqueueSnackbar } = useSnackbar();
const onClick = () => {
enqueueSnackbar('Copied!');
};
return <Button onClick={onClick}>Click Me!</Button>;
}