import { Form, Radio, Space } from "antd"; import { Group } from "antd/es/radio"; import ArabicPrice from "components/ArabicPrice"; import DifferentCardIcon from "components/Icons/paymentMethods/DifferentCardIcon"; import ProText from "components/ProText"; import { useTranslation } from "react-i18next"; import { colors, ProGray1 } from "../../ThemeConstants"; import ProInputCard from "../ProInputCard/ProInputCard"; import styles from "./PaymentMethods.module.css"; interface PaymentMethodsProps { onPaymentSelect?: () => void; } const PaymentMethods = ({ onPaymentSelect, ...props }: PaymentMethodsProps) => { const { t } = useTranslation(); const options: { label: string; value: string; price?: string; icon?: React.ReactNode; style?: React.CSSProperties; }[] = [ { label: t("checkout.creditDebitCard"), value: "creditDebitCard", price: t("checkout.expiresIn") + ":12/26", }, { label: t("checkout.differentCard"), value: "differentCard", icon: (
{" "}
), }, { label: t("checkout.fascanoWallet"), value: "fascanoWallet", price: "7.50", style: { color: colors.primary, }, }, ]; return ( {options.map((option) => (
{option.label} {!option.icon ? ( ) : ( <>{option.icon} )}
))}
); }; export default PaymentMethods;