import { useReactiveClient } from '@dynamic-labs/react-hooks';
import { dynamicClient } from './path-to-your-client'; // Replace with your actual client path
export const useDynamicClient = () => useReactiveClient(dynamicClient);
const FundingComponent = () => {
const client = useDynamicClient()
const handleShowFunding = () => {
client.ui.fundingOptions.show()
}
const handleHideFunding = () => {
client.ui.fundingOptions.hide()
}
return (
<>
<Button onPress={handleShowFunding} title="Add Funds" />
<Button onPress={handleHideFunding} title="Close Funding Options" />
</>
)
}