import { Badge, Button } from "antd"; import ArabicPrice from "components/ArabicPrice"; import BackIcon from "components/Icons/BackIcon"; import CartIcon from "components/Icons/cart/CartIcon"; import NextIcon from "components/Icons/NextIcon"; import ProText from "components/ProText"; import { selectCartItems, selectGrandTotal } from "features/order/orderSlice"; import useBreakPoint from "hooks/useBreakPoint"; import { OrderType } from "pages/checkout/hooks/types"; import { useTranslation } from "react-i18next"; import { Link, useParams } from "react-router-dom"; import { useAppSelector } from "redux/hooks"; import { colors, ProBlack2 } from "ThemeConstants"; export function MenuFooter() { const items = useAppSelector(selectCartItems); const { themeName } = useAppSelector((state) => state.theme); const { isMobile, isTablet } = useBreakPoint(); const { t } = useTranslation(); const { subdomain } = useParams(); const { orderType } = useAppSelector((s) => s.order); const totalItems = items.length; const grandTotal = useAppSelector(selectGrandTotal); const { isRTL } = useAppSelector((state) => state.locale); console.log(orderType); return ( <> {(isMobile || isTablet) && (
{!isRTL ? ( ) : ( )}
)} ); }