File size: 625 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import { Box, Image, VStack } from '@chakra-ui/react';
import React from 'react';
import { useParams } from 'react-router-dom';
const PreviewImg = () => {
const { url } = useParams();
return (
<Box p={{ base: '1rem 0.5rem', md: '1rem' }}>
<VStack
alignItems='center'
justifyContent='center'
w='100%'
h='100vh'
bg='#0e0e0e'
pos='fixed'
top='0'
left='0'
>
<Image src={url} maxW='100%' maxH='100%' alt='preview_img' />
</VStack>
</Box>
);
};
export default PreviewImg;
|