import PropTypes from 'prop-types' import Tabs from '@mui/material/Tabs' import Tab from '@mui/material/Tab' import Box from '@mui/material/Box' import Button from '@mui/material/Button' import {Paypal, Liberapay} from '@icons-pack/react-simple-icons' import Grid from '@mui/material/Grid2' import CardMethod from './card-method' const PAYPAL_ID = process.env.NEXT_PUBLIC_PAYPAL_DONATE_ID const LIBERAPAY_DONATE = process.env.NEXT_PUBLIC_LIBERAPAY_DONATE function TabPanel(props) { const {children, value, index, ...other} = props return ( ) } TabPanel.propTypes = { children: PropTypes.node, index: PropTypes.number.isRequired, value: PropTypes.number.isRequired, } function a11yProps(index) { return { id: `simple-tab-${index}`, 'aria-controls': `simple-tabpanel-${index}`, } } export default function PaymentMethod({paymentMethod, setPaymentMethod}) { const handleChange = (event, newValue) => { setPaymentMethod(newValue) } return ( ) } PaymentMethod.propTypes = { paymentMethod: PropTypes.number.isRequired, setPaymentMethod: PropTypes.func.isRequired }