@pagopa/mui-italia
Version:
[Material-UI](https://mui.com/core/) theme inspired by [Bootstrap Italia](https://italia.github.io/bootstrap-italia/).
54 lines (53 loc) • 1.9 kB
TypeScript
import { LangSwitchProps } from "../LangSwitch";
export type LinkType = "internal" | "external";
type FooterProps = LangSwitchProps & {
loggedUser: boolean;
companyLink: CompanyLinkType;
postLoginLinks: Array<FooterLinksType>;
preLoginLinks: PreLoginFooterLinksType;
legalInfo: JSX.Element | Array<JSX.Element>;
onExit?: (exitAction: () => void) => void;
productsJsonUrl?: string;
onProductsJsonFetchError?: (reason: any) => void;
hideProductsColumn?: boolean;
};
export type FooterLinksType = {
label: string;
/** the url to witch the user will be redirect */
href?: string;
ariaLabel: string;
linkType: LinkType;
/** if defined it will override the href behavior */
onClick?: () => void;
};
export type PreLoginFooterSingleSectionType = {
title?: string;
links: Array<FooterLinksType>;
};
export type PreLoginFooterSocialLink = {
icon: string;
/** the url to witch the user will be redirect */
href?: string;
title: string;
ariaLabel: string;
/** if defined it will override the href behavior */
onClick?: () => void;
};
export type PreLoginFooterLinksType = {
aboutUs: PreLoginFooterSingleSectionType;
resources: PreLoginFooterSingleSectionType;
followUs: {
title: string;
socialLinks: Array<PreLoginFooterSocialLink>;
links: Array<FooterLinksType>;
};
};
export type CompanyLinkType = {
/** the url to witch the user will be redirect */
href?: string;
ariaLabel: string;
/** if defined it will override the href behavior */
onClick?: () => void;
};
export declare const Footer: ({ companyLink, postLoginLinks, preLoginLinks, legalInfo, loggedUser, onExit, languages, onLanguageChanged, currentLangCode, productsJsonUrl, onProductsJsonFetchError, hideProductsColumn, }: FooterProps) => import("react/jsx-runtime").JSX.Element;
export {};