import React from 'react'; import { MemoizedIFrame } from './IFrame'; import styled from '@emotion/styled'; import { TEMPI_MAIN_IFRAME } from '@tempi/core-renderer'; interface DeviceProps { children: React.ReactNode; device?: string; } const Wrapper = styled.div` transition: 0.3s; &.mobile { top: 10px; height: calc(100% - 20px); position: relative; width: 460px; max-width: 100%; margin: auto; box-shadow: 0px 0px 15px 0px #80808020; border-radius: 10px; overflow: hidden; } &.tablet { top: 10px; height: calc(100% - 20px); position: relative; width: 800px; max-width: 100%; margin: auto; box-shadow: 0px 0px 15px 0px #80808020; border-radius: 10px; overflow: hidden; } &.desktop { position: absolute; width: 100%; height: 100%; left: 0; right: 0; top: 0; margin: auto; overflow: hidden; &.preview { width: 100%; height: auto; min-height: 100%; } } `; export const Device: React.FC = ({ children, device, ...rest }: DeviceProps) => { return ( {children} ); };