ghost-portal/packages/page-fellowship/src/useCounter.ts
2026-01-30 11:03:02 +01:00

12 lines
386 B
TypeScript

// Copyright 2017-2026 @polkadot/app-ranked authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { useCounterNamed } from '@polkadot/app-referenda/useCounter';
import { createNamedHook } from '@polkadot/react-hooks';
function useCounterImpl (): number {
return useCounterNamed('fellowshipReferenda');
}
export default createNamedHook('useCounter', useCounterImpl);