'use client'; import type { ReactNode } from 'react'; import { border, cn, text } from '../../styles/theme'; import { useFundCardSetupOnrampEventListeners } from '../hooks/useFundCardSetupOnrampEventListeners'; import type { FundCardProps } from '../types'; import FundCardAmountInput from './FundCardAmountInput'; import FundCardAmountInputTypeSwitch from './FundCardAmountInputTypeSwitch'; import { FundCardHeader } from './FundCardHeader'; import { FundCardPaymentMethodDropdown } from './FundCardPaymentMethodDropdown'; import { FundCardPresetAmountInputList } from './FundCardPresetAmountInputList'; import { FundCardProvider } from './FundCardProvider'; import { FundCardSubmitButton } from './FundCardSubmitButton'; export function FundCard({ assetSymbol, buttonText = 'Buy', headerText, country = 'US', subdivision, currency = 'USD', presetAmountInputs, children = , className, onError, onStatus, onSuccess, sessionToken, }: FundCardProps) { return (
{children}
); } function FundCardContent({ children }: { children: ReactNode }) { // Setup event listeners for the onramp useFundCardSetupOnrampEventListeners(); return (
{children}
); } function DefaultFundCardContent() { return ( <> ); }