@prezly/theme-kit-ui
Version:
UI components for Prezly themes
39 lines (38 loc) • 1.66 kB
TypeScript
import type { Culture, Newsroom } from '@prezly/sdk';
import { CategoriesDropdown, LanguagesDropdown } from './components';
export declare function Navigation({ className, intl, categories, languages, newsroom, showNewsroomLabelAsideLogo, externalSiteLink, onSearch, locale, hasStandaloneAboutPage, hasStandaloneContactsPage, indexHref, aboutHref, contactsHref, }: Navigation.Props): import("react/jsx-runtime").JSX.Element;
export declare namespace Navigation {
interface Intl extends CategoriesDropdown.Intl {
['newsroom.title']: string;
['media.title']: string;
['about.title']: string;
['contacts.title']: string;
}
type DisplayedLanguage = LanguagesDropdown.Option;
type DisplayedCategory = CategoriesDropdown.Option;
interface DisplayedNewsroom {
name: Newsroom['display_name'];
galleries: Newsroom['public_galleries_number'];
logo: Newsroom['newsroom_logo'];
}
interface Props {
className?: string;
intl?: Partial<Navigation.Intl>;
categories?: {
options: Navigation.DisplayedCategory[];
indexHref?: CategoriesDropdown.Props['indexHref'];
};
languages?: Navigation.DisplayedLanguage[];
showNewsroomLabelAsideLogo?: boolean;
externalSiteLink?: string;
onSearch?: () => void;
locale: Culture['code'];
hasStandaloneAboutPage?: boolean;
hasStandaloneContactsPage?: boolean;
newsroom: DisplayedNewsroom;
indexHref: `/${string}`;
mediaHref: `/${string}`;
aboutHref?: `/${string}`;
contactsHref?: `/${string}`;
}
}