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 ( <>