import { Button, Flex, HStack, Image, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, Stack, Text } from "@chakra-ui/react"; import React from "react"; import {Offer} from "../intefaces/interfaces"; function CustomOffer(props: Offer) { const {open, title, validity, description, productName, offerImage, logo, redeem} = props; return ( <> {title} Here’s a little gift from us for purchasing{" "} {" "} {productName}.{" "} {description} {/* LAST */} Valid until {validity}. By redeeming this code you agree to the {" "} T&Cs. {/* */} ); } export default CustomOffer;