import { isHex } from '@polkadot/util'; import { Outlet, useNavigate } from 'react-router-dom'; import { SearchForm } from '@/shared/ui'; import { isNumeric } from '@/shared/helpers'; import styles from './explorer.module.scss'; const Explorer = () => { const navigate = useNavigate(); return (

Recent events

schema.refine((value) => isNumeric(value) || isHex(value), 'Value should be number or hex') } onSubmit={(block) => navigate(`/explorer/${block}`)} />
); }; export { Explorer };