import { useState } from 'react'; import { Box, LoadingOverlay } from '@biom3/react'; import { useTranslation } from 'react-i18next'; import { HeaderNavigation } from '../../../components/Header/HeaderNavigation'; import { SimpleLayout } from '../../../components/SimpleLayout/SimpleLayout'; import { WithCard } from '../components/WithCard'; interface PayWithCardProps { onCloseButtonClick?: () => void; onError?: () => void; } export function PayWithCard({ onCloseButtonClick, onError, }: PayWithCardProps) { const [initialised, setInitialised] = useState(false); const { t } = useTranslation(); const onInit = () => setInitialised(true); const onOrderFailed = () => { onError?.(); }; return ( onCloseButtonClick?.()} /> ) } > <> ); }