import React from 'react' import { Column, Icon, Text } from '../../atoms' import styles from './styles.module.css' export interface Methods { id: string name: string icon: string } interface PaymentMethodsProps { methods: Methods[] payId?: string dispatch: React.Dispatch } export const PaymentMethods: React.FC = ({ methods, payId = '', dispatch }) => { return (
{methods.map((method) => { return ( { dispatch({ type: 'PAYMENT_METHOD', payload: method.id }) }} > {method.name} ) })}
) }