import React, { useState } from "react"; import { connect } from "react-redux"; import { userFactor } from "../../../redux/actions"; import "./index.scss"; function DiscountCode({ codeId, setCodeId, delCodeId, userId, factorId, code, }: any) { const [value, setValue] = React.useState(code || ""); const setOff = () => { setCodeId({ offCodeValue: value, userId: userId, id: Number(factorId) || null }); }; return (
کد تخفیف برای شما ثبت شده است
> )}