ghost-portal/packages/page-ranked/src/useCounter.ts
2024-01-08 15:06:30 +02:00

12 lines
378 B
TypeScript

// Copyright 2017-2024 @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('rankedPolls');
}
export default createNamedHook('useCounter', useCounterImpl);