ghost-portal/packages/page-ranked/src/useCounter.ts
Jaco 4929b1c6fd
Update headers for 2023 (#8665)
* Update headers for 2023

* Adjust env-config
2023-01-01 10:32:05 +02:00

12 lines
378 B
TypeScript

// Copyright 2017-2023 @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);