@edgex-web/components
Version:
EdgeX Universal UI Components Library - Reusable React components for deposit, withdraw and other common UI patterns
16 lines (15 loc) • 579 B
TypeScript
import { default as React, ReactNode } from 'react';
import { ComponentConfig } from '../../types';
import { TranslationKeys, SupportedLocale } from '../../locales';
interface ComponentProviderProps {
config: ComponentConfig;
children: ReactNode;
}
interface ComponentContextValue extends ComponentConfig {
translations: TranslationKeys;
currentLocale: SupportedLocale;
}
export declare const ComponentProvider: React.FC<ComponentProviderProps>;
export declare const useComponentConfig: () => ComponentContextValue;
export {};
//# sourceMappingURL=index.d.ts.map