mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-22 14:47:58 +00:00
15 lines
370 B
TypeScript
15 lines
370 B
TypeScript
// Copyright 2017-2026 @pezkuwi/app-settings authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { createNamedHook } from '@pezkuwi/react-hooks';
|
|
|
|
import useExtensions from './useExtensions.js';
|
|
|
|
function useCounterImpl (): number {
|
|
const { count } = useExtensions();
|
|
|
|
return count;
|
|
}
|
|
|
|
export default createNamedHook('useCounter', useCounterImpl);
|