We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e3b466 commit d45b242Copy full SHA for d45b242
1 file changed
packages/client/editor/src/components/Modal/NewModal.tsx
@@ -2,7 +2,7 @@ import React, { useCallback } from 'react'
2
import { useModal } from '../../contexts/ModalProvider'
3
import { useHotkeys } from 'react-hotkeys-hook'
4
import { Button } from '@magickml/client-ui'
5
-import Image from 'next/legacy/image'
+import Image, { StaticImageData } from 'next/legacy/image'
6
7
const Modal = ({
8
options,
@@ -17,7 +17,7 @@ const Modal = ({
17
className?: string
18
children?: React.ReactNode
19
onClose?: () => void
20
- imagePath?: string
+ imagePath?: string | StaticImageData
21
}) => {
22
const { closeModal } = useModal()
23
0 commit comments