import React, { useContext } from 'react';
import { ViewerDiv } from './styles';
import Viewer from '@r2u/viewer';
import Canvas from '../Canvas';
import { FiArrowLeft } from '../../../assets/icons';
import { ModalContext } from '../Context';
const ModalViewerFull = ({ glb }) => {
    const { closeModal } = useContext(ModalContext);
    return (React.createElement(Canvas, null,
        React.createElement(FiArrowLeft, { width: 30, height: 30, color: "#707070", cursor: "pointer", className: "exit", onClick: closeModal }),
        React.createElement(ViewerDiv, null,
            React.createElement(Viewer, { glbSrc: glb }))));
};
export default ModalViewerFull;
//# sourceMappingURL=index.js.map