Files
web/components/Modal/Modal/index.tsx
2024-04-12 16:25:52 +02:00

23 lines
399 B
TypeScript

import { forwardRef } from "react"
import styles from "./modal.module.css"
const Modal = forwardRef<HTMLDivElement, React.PropsWithChildren>(
function ({ children }, ref) {
return (
<div
className={styles.modal}
ref={ref}
role="dialog"
tabIndex={-1}
>
{children}
</div>
)
}
)
Modal.displayName = "Modal"
export default Modal