@etsoo/toolpad
Version:
Dashboard framework extention based on Toolpad Core
57 lines (56 loc) • 1.81 kB
TypeScript
import * as React from "react";
declare const DEFAULT_LOCALE_TEXT: {
signInLabel: string;
signOutLabel: string;
accountIconButtonAriaLabel: string;
expandMenuTitle: string;
expandNavMenuAriaLabel: string;
collapseMenuTitle: string;
collapseNavMenuAriaLabel: string;
switchModeTitle: string;
darkModeTitle: string;
lightModeTitle: string;
switchThemeModeAriaLabel: string;
switchToDarkModeAriaLabel: string;
switchToLightModeAriaLabel: string;
};
export type LocaleContextType = typeof DEFAULT_LOCALE_TEXT;
export declare const LocaleContext: React.Context<{
signInLabel: string;
signOutLabel: string;
accountIconButtonAriaLabel: string;
expandMenuTitle: string;
expandNavMenuAriaLabel: string;
collapseMenuTitle: string;
collapseNavMenuAriaLabel: string;
switchModeTitle: string;
darkModeTitle: string;
lightModeTitle: string;
switchThemeModeAriaLabel: string;
switchToDarkModeAriaLabel: string;
switchToLightModeAriaLabel: string;
}>;
export interface LocaleProviderProps {
localeText?: Partial<LocaleContextType>;
children: React.ReactNode;
}
/**
* @ignore - internal component.
*/
export declare function LocaleProvider({ localeText, children }: LocaleProviderProps): import("react/jsx-runtime").JSX.Element;
export declare function useLocaleText(): {
signInLabel: string;
signOutLabel: string;
accountIconButtonAriaLabel: string;
expandMenuTitle: string;
expandNavMenuAriaLabel: string;
collapseMenuTitle: string;
collapseNavMenuAriaLabel: string;
switchModeTitle: string;
darkModeTitle: string;
lightModeTitle: string;
switchThemeModeAriaLabel: string;
switchToDarkModeAriaLabel: string;
switchToLightModeAriaLabel: string;
};
export {};