mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
19 lines
471 B
TypeScript
19 lines
471 B
TypeScript
import React from 'react'
|
|
import Alert from '@material-ui/lab/Alert';
|
|
import Notification from '../../../../ui/components/Notification';
|
|
import { useBankAlert } from './../../hooks/useBankAlert';
|
|
|
|
export const BankNotification = ({ alert }) => {
|
|
const { setBankAlert } = useBankAlert();
|
|
|
|
const handleClose = () => {
|
|
setBankAlert(false)
|
|
}
|
|
|
|
return (
|
|
<Notification handleClose={onClose}>
|
|
<Alert onClose={handleClose}></Alert>
|
|
</Notification>
|
|
)
|
|
}
|