import { observer } from 'mobx-react-lite'; import cn from 'classnames'; import Screen from './ScreenWithLoaders'; //import cls from './HTMLScreen.css'; const DEVICE_MAP = { "iPhone 4s": "iphone4s", "iPhone 5s": "iphone5s", "iPhone 5c": "iphone5c", "iPhone 8": "iphone8", "iPhone 8 Plus": "iphone8plus", "iPhone X": "iphone-x", } function mapDevice(device) { if (!!DEVICE_MAP[ device ]) { return DEVICE_MAP[ device ]; } if (device.includes("iPhone")) { return "iphone8"; // ?? } if (device.includes("iPad")) { return "iPad"; } return "macbook"; } function getDefaultColor(type) { if (type === "iphone5c") { return "white"; } if (type === "iphone-x" || type === "macbook") { return ""; } return "black"; } function BeforeScreen({ type }) { if (type === "ipad") { return
} if (type === "iphone-x") { return ( <>
); } if (type === "macbook") { return ( <>
); } return ( <>
); } function AfterScreen({ type }) { if (type === "ipad") { return
; } if (type === "macbook") { return
; } if (type === "iphone-x") { return null; } return ( <>
); } function HTMLScreen({ wrapperId, screenId, device, player }) { const type = mapDevice(device); const color = getDefaultColor(type); return ( <>
{/*
*/} {/* */} {/* */} {/* */} {/* */} {/*
*/} ); } export default observer(HTMLScreen); // iphone8 iphone8plus iphone5s iphone5c(white) iphone4s //
//
//
//
//
//
//
//
// //
//
//
//
// // //
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// //
//
// //
//
//
// //
//
//
// // //
//
//
//
// //
//
//
// //