import type { INavLink } from "../../sidenav-link/types/webcomponent.type"; import type { I18nLanguageOption, ThemePreference, } from "../../sidebar-desktop/types/webcomponent.type"; export type Component = { id?: string; style?: string; opened?: boolean; navlinks?: INavLink[]; navpage?: string; groups?: { key: string; label: string }[]; companylogouri?: string; companytitle?: string; /** Passed through to hb-sidebar-desktop (`yes` shows footer chrome and slot). */ enablefooter?: boolean | "yes" | "no" | "false" | null | "" | undefined; enablethemeswitch?: "yes" | "no" | null | "" | undefined; themepreference?: ThemePreference | null | "" | undefined; i18nlang?: string | null | "" | undefined; i18nlanguages?: I18nLanguageOption[] | string | null | "" | undefined; type?: "open" | "autohide" | "small"; }; export type Events = { offcanvasswitch: { isOpen: boolean }; pageChange: { page: string }; languageChange: { code: string }; themeChange: { mode: ThemePreference }; };