ghost-portal/packages/react-hooks/src/ctx/AccountSidebar.tsx
2024-01-08 15:06:30 +02:00

9 lines
329 B
TypeScript

// Copyright 2017-2024 @polkadot/react-hooks authors & contributors
// SPDX-License-Identifier: Apache-2.0
import React from 'react';
type SetStateContext = undefined | (([address, onUpdateName]: [string | null, (() => void) | null]) => void);
export const AccountSidebarCtx = React.createContext<SetStateContext>(undefined);