15 lines
406 B
TypeScript
15 lines
406 B
TypeScript
// Copyright 2017-2024 @polkadot/app-settings authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { createNamedHook } from '@polkadot/react-hooks';
|
|
|
|
import usePolkadotPreclaims from './usePolkadotPreclaims.js';
|
|
|
|
function useCounterImpl (): number {
|
|
const needAttest = usePolkadotPreclaims();
|
|
|
|
return needAttest.length;
|
|
}
|
|
|
|
export default createNamedHook('useCounter', useCounterImpl);
|