import { Card, Checkbox, Divider, Space } from "antd"; import ArabicPrice from "components/ArabicPrice"; import { selectCart, selectCartTotal, selectGrandTotal, } from "features/order/orderSlice"; import { OrderType } from "pages/checkout/hooks/types"; import { useTranslation } from "react-i18next"; import { useParams } from "react-router-dom"; import { useGetRestaurantDetailsQuery } from "redux/api/others"; import { useAppSelector } from "redux/hooks"; import ProText from "components/ProText"; import ProTitle from "components/ProTitle"; import styles from "./VoucherSummary.module.css"; import { CSSProperties } from "react"; export default function VoucherSummary() { const { t } = useTranslation(); const { subdomain } = useParams(); const { data: restaurant } = useGetRestaurantDetailsQuery(subdomain); const subtotal = useAppSelector(selectCartTotal); const grandTotal = useAppSelector(selectGrandTotal); const titlesStyle: CSSProperties = { fontWeight: 400, fontStyle: "Regular", fontSize: 12, lineHeight: "140%", letterSpacing: "0%", textAlign: "center", }; return ( <> {t("cart.voucherSummary")}
{t("cart.voucherBalance")}
{t("cart.voucherApplied")}
{t("cart.remainingVoucherAmount")}
); }