kremalicious/blog

View on GitHub
src/features/Web3/components/Send/Send.tsx

Summary

Maintainability
A
0 mins
Test Coverage
D
62%
import { $txHash } from '@/features/Web3/stores'
import { useStore } from '@nanostores/react'
import { Preview } from '../Preview'
import { Success } from '../Success'

export function Send() {
  const txHash = useStore($txHash)

  return txHash ? <Success /> : <Preview />
}