{c} Confirm (any action)

This demo signs in and trades on mainnet, so it runs in your browser rather than at build time. The source below is the code it runs.

const { confirm } = useConfirm()

await confirm({
  title: 'Create market',
  subject: 'Will Hims & Hers close at $32 or higher on Aug 3, 2026?',
  lines:   [{ label: 'Seed liquidity', value: '150 PST', hint: 'Your stake in your own market' }],
  details: [{ label: 'Resolves', value: 'Aug 3, 2026 · 21:00 UTC' },
            { label: 'Sources',  value: ['query1.finance.yahoo.com'] }],
  confirmText: 'Create',
  action: 'marketCreation',
  send: () => [[approvalCall], [createCall]],   // each group = its own UserOp
})

// mount once near root:  <ProphecyConfirm />