@clubmed/trident-ui
Version:
Shared ClubMed React UI components
20 lines (19 loc) • 579 B
TypeScript
import { PropsWithChildren } from 'react';
/**
* Allow ambient extension from application consumer.
*/
declare global {
namespace TUI {
interface Config {
locale?: string;
}
}
}
export declare const TridentUIConfigProvider: ({ children, value, }: PropsWithChildren<{
value: TUI.Config;
}>) => import("react/jsx-runtime").JSX.Element;
export declare function useConfig(): {
config: TUI.Config;
get<Value = unknown>(key: string, defaultValue: Value): Value | undefined;
};
export declare function useLocale(): "fr-FR" | undefined;