UNPKG

@ducor/react

Version:

admin template ui interface

16 lines (15 loc) 508 B
import { ReactNode } from "react"; interface ScopeProps { children?: ReactNode; scope: string; } export type FieldName = string; export type FieldAbsoluteName = string; interface ScopeState { scope: string; fieldMap: Map<FieldName, FieldAbsoluteName>; } export declare const ScopeContext: import("react").Context<ScopeState | undefined>; declare const Scope: ({ scope, children }: ScopeProps) => void; export declare function useScope(name: string): string | undefined; export default Scope;