import React from "react"; import "./index.scss"; import { connect } from "react-redux"; import { userFactor } from "~/Redux/actions"; const maxDesktopSize = 1250; const maxMobileSize = 550; const fontSize = { desktop: { h2: window.innerWidth > maxDesktopSize ? 16 : window.innerWidth / 55, input: window.innerWidth > maxDesktopSize ? 16 : window.innerWidth / 75, button: window.innerWidth > maxDesktopSize ? 15 : window.innerWidth / 75, p: window.innerWidth > maxDesktopSize ? 12 : window.innerWidth / 90, }, mobile: { h2: window.innerWidth > maxMobileSize ? 16 : window.innerWidth / 24, p: window.innerWidth > maxMobileSize ? 12 : window.innerWidth / 32, input: window.innerWidth > maxMobileSize ? 16 : window.innerWidth / 20, button: window.innerWidth > maxMobileSize ? 16 : window.innerWidth / 25, }, }; const DiscoutCode = ({ codeId, setCodeId }) => { const [value, setValue] = React.useState(codeId || ""); function setOff() { setCodeId({ codeId: value }); } return ( <> {window.innerWidth > 1000 ? (
اگر کد تخفیفی دارید آن را در کادر زیر وارد نمائید
اگر کد تخفیفی دارید آن را در کادر زیر وارد نمائید{" "}