UNPKG

@pagamio/frontend-commons-lib

Version:

Pagamio library for Frontend reusable components like the form engine and table container

41 lines (40 loc) 1.36 kB
import React from 'react'; import type { TranslationProviderProps } from '../../translations'; import type { AppDashboardNavbarProps } from './Navbar'; interface AppLayoutProps { children: React.ReactNode; appNavbar: AppDashboardNavbarProps; /** * When true, the sidebar will not be rendered * @default false */ hideSidebar?: boolean; /** * When true, the navbar will not be rendered * @default false */ hideNavbar?: boolean; /** * When true, the AppBreadcrumbNav will not be rendered * @default false */ hideBreadcrumbNav?: boolean; /** * When true, enables translation functionality * @default false */ enableTranslations?: boolean; /** * Translation provider configuration */ translationConfig?: Omit<TranslationProviderProps, 'children'>; /** * Optional custom header component to render at the top of the sidebar * Useful for module switchers, additional navigation, or branding * @default undefined */ sidebarHeader?: React.ReactNode; } declare const AppLayout: ({ children, appNavbar, hideSidebar, hideNavbar, hideBreadcrumbNav, enableTranslations, translationConfig, sidebarHeader, }: AppLayoutProps) => import("react/jsx-runtime").JSX.Element; export default AppLayout; export type { AppLayoutProps };