Files
requestarr/src/components/ToastContainer/index.tsx
Ryan Cohen 16545eec22 feat: tooltip foundation (#2950)
* feat: add foundation for tooltips

* fix: add lang

* refactor: remove React import where no longer necessary
2022-08-19 19:35:50 +09:00

19 lines
495 B
TypeScript

import type { ToastContainerProps } from 'react-toast-notifications';
const ToastContainer = ({ hasToasts, ...props }: ToastContainerProps) => {
return (
<div
id="toast-container"
className="fixed right-0 top-4 box-border max-h-full max-w-full overflow-hidden px-4"
style={{
pointerEvents: hasToasts ? 'all' : 'none',
zIndex: 10000,
paddingTop: 'env(safe-area-inset-top)',
}}
{...props}
/>
);
};
export default ToastContainer;