import React from 'react'
import type { BlockFoundEvent } from '../../../providers/events/State'
import { Text } from '../../shared'
import { formatInteger } from '../EventItem/formatInteger'
import { Link, Property, Table } from './components'
interface Props {
event: BlockFoundEvent
}
export function BlockFoundPreview({ event }: Props) {
const link = getExplorerLink(event.network, event.blockNumber)
return (
<>
A new block has been found. Each new block will trigger a call to the blockchain that will refresh the state.