import clsx from 'clsx'; import get from 'lodash/get'; import isEmpty from 'lodash/isEmpty'; import { TransformComponent, TransformWrapper } from 'react-zoom-pan-pinch'; import { useAppSelector } from '@/store/hooks'; import ArtboardController from './ArtboardController'; import styles from './Center.module.scss'; import Header from './Header'; import Page from './Page'; const Center = () => { const orientation = useAppSelector((state) => state.build.page.orientation); const resume = useAppSelector((state) => state.resume); const layout: string[][][] = get(resume, 'metadata.layout'); if (isEmpty(resume)) return null; return (
{(controllerProps) => ( <>
{layout.map((_, pageIndex) => ( ))}
)}
); }; export default Center;