mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-28 09:07:57 +00:00
13 lines
364 B
TypeScript
13 lines
364 B
TypeScript
// Copyright 2017-2026 @pezkuwi/app-accounts authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { createNamedHook, useAccounts } from '@pezkuwi/react-hooks';
|
|
|
|
function useCounterImpl (): string | null {
|
|
const { hasAccounts } = useAccounts();
|
|
|
|
return hasAccounts ? null : '!';
|
|
}
|
|
|
|
export default createNamedHook('useCounter', useCounterImpl);
|