import { isHex } from '@polkadot/util'; import { useState } from 'react'; import { IssueVoucher, Vouchers as VouchersFeature, VoucherFilters, useVoucherFilters, useVouchers, } from '@/features/voucher'; import { SearchForm } from '@/shared/ui'; import styles from './vouchers.module.scss'; const Vouchers = () => { const [searchQuery, setSearchQuery] = useState(''); const [filterParams, handleFiltersSubmit] = useVoucherFilters(); const [vouchers, count, isLoading, hasMore, fetchMore, refetch] = useVouchers(searchQuery, filterParams); return (

Vouchers: {count}

schema.refine((value) => isHex(value), 'Value should be hex')} onSubmit={(query) => setSearchQuery(query)} />
); }; export { Vouchers };