UNPKG

@ssa-ui-kit/widgets

Version:
24 lines (23 loc) 919 B
export type UseAccountKeysOptions = { title?: string | JSX.Element; apiKey: string; secretKey: string; placeholder?: string | JSX.Element; visible?: boolean; defaultVisible?: boolean; onDelete?: () => void; onVisibilityChange?: (e: boolean) => void; isDisabled?: boolean; }; export declare const useAccountKeys: ({ title, apiKey, secretKey, placeholder: controlledPlaceholder, isDisabled, visible, defaultVisible, onDelete, onVisibilityChange, }: UseAccountKeysOptions) => { title: string | JSX.Element | undefined; apiKey: string; secretKey: string; placeholder: string | import("@emotion/react/jsx-runtime").JSX.Element; visible: boolean; isDisabled: boolean | undefined; onDelete: (() => void) | undefined; setVisible: (value: boolean) => void; toggleVisible: () => void; }; export type UseAccountKeysStore = ReturnType<typeof useAccountKeys>;