Add Auth Index page (#323)
This commit is contained in:
24
front/src/modules/ui/components/modal/Modal.tsx
Normal file
24
front/src/modules/ui/components/modal/Modal.tsx
Normal file
@ -0,0 +1,24 @@
|
||||
import React from 'react';
|
||||
import ReactModal from 'react-modal';
|
||||
import { useTheme } from '@emotion/react';
|
||||
|
||||
export function Modal({ children }: { children: React.ReactNode }) {
|
||||
const theme = useTheme();
|
||||
return (
|
||||
<ReactModal
|
||||
isOpen
|
||||
style={{
|
||||
overlay: {
|
||||
backgroundColor: theme.modalBackgroundTransparent,
|
||||
zIndex: 2,
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
},
|
||||
content: { zIndex: 1000, minWidth: 200, inset: 'auto' },
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</ReactModal>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user