pagamio-frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
47 lines (46 loc) • 1.61 kB
TypeScript
import React from 'react';
interface AppUserDropdownProps {
onLogout?: () => void;
onSelectProfile: () => void;
onSelectChangePassword?: () => void;
}
interface AppDashboardNavbarProps extends AppUserDropdownProps {
dashboardLink?: string;
brandImage: {
src: string;
alt: string;
width: number;
height: number;
};
linkComponent: React.ElementType;
showThemeToggler?: boolean;
appLabel: string;
/**
* When true, the sidebar toggle button will not be rendered
* @default false
*/
hideSidebarToggle?: boolean;
/**
* Array of custom components (actions) to be rendered just before the user dropdown
*/
navBarActionComponents?: React.ReactNode[];
/**
* When true, shows the locale switcher in the navbar
* @default false
*/
showLocaleSwitcher?: boolean;
/**
* Custom locale names to display in the locale switcher
*/
localeNames?: Record<string, string>;
}
declare const AppSidebarToggleButton: React.FC<{
isMobileOpen: boolean;
onToggle: () => void;
}>;
declare const AppDarkThemeToggleWithTooltip: React.FC;
declare const AppUserDropdown: React.MemoExoticComponent<({ onLogout, onSelectChangePassword, onSelectProfile }: AppUserDropdownProps) => import("react/jsx-runtime").JSX.Element>;
declare const AppDashboardNavbar: React.FC<AppDashboardNavbarProps>;
export default AppDashboardNavbar;
export { AppSidebarToggleButton, AppDarkThemeToggleWithTooltip, AppUserDropdown, AppDashboardNavbar };
export type { AppDashboardNavbarProps, AppUserDropdownProps };