File size: 445 Bytes
a62d4c5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { ReactNode } from 'react'

interface ModalProps {
  children?: ReactNode
}

export default function Modal(props: ModalProps) {
  const { children } = props
  return (
    <div
      className={[
        'absolute w-full h-full flex justify-center items-center',
        'bg-white bg-opacity-40 backdrop-filter backdrop-blur-md',
      ].join(' ')}
    >
      <div className="bg-primary p-16 max-w-4xl">{children}</div>
    </div>
  )
}