-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
022b6f8
commit 86e68b7
Showing
5 changed files
with
89 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import Image from 'next/image'; | ||
|
||
import FullModal from '../FullModal'; | ||
|
||
interface FullImageModalProps { | ||
isShow: boolean; | ||
onClose: () => void; | ||
imageUrl: string; | ||
altText: string; | ||
} | ||
|
||
const FullImageModal = ({ | ||
isShow, | ||
onClose, | ||
imageUrl, | ||
altText, | ||
}: FullImageModalProps) => { | ||
return ( | ||
<FullModal show={isShow} onClose={onClose}> | ||
<div className='flex h-full w-full items-center'> | ||
<div className='relative h-[260px] w-full'> | ||
<Image | ||
src={imageUrl} | ||
alt={altText} | ||
layout='fill' | ||
objectFit='contain' | ||
/> | ||
</div> | ||
</div> | ||
</FullModal> | ||
); | ||
}; | ||
|
||
export default FullImageModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters