bidasoa-components
Version:
Colección de componentes comunes empleados en proyectos Bidasoa.
25 lines (24 loc) • 1.45 kB
TypeScript
import { ContentMetaTag, MetaTagLink } from 'models/content/MetaTags';
import { TranslationsConfiguration } from 'models/content/Node/TranslationConfiguration';
import { Paragraph } from 'models/content/Paragraph';
import { Breadcrumb } from '../Breadcrumb';
import { ContentNode } from './ContentNode';
export interface Node<T = Record<string, unknown>> {
data: {
content: ContentNode<T>;
};
}
export declare function getNodeTranslations<T>(node: Node<T>): TranslationsConfiguration[];
export declare function getNodeLangcode<T>(node: Node<T>): string;
export declare function isNodeToBuild(node: Node<Record<string, never>>): boolean;
export declare function getPageTitle<T>(nodeDto: Node<T>): string;
export declare function getContentMetaTags<T>(nodeDto: Node<T>): Array<ContentMetaTag> | undefined;
export declare function getLinkMetatags<T>(node: Node<T>): Array<MetaTagLink> | undefined;
export declare function getNodeTitle<T>(node: Node<T>): string;
export declare function hasSubtitle<T>(node: Node<T>): boolean;
export declare function getSubtitle<T>(node: Node<T>): string | undefined;
export declare function hasParagraphs<T>(node: Node<T>): boolean;
export declare function getParagraphs<T>(node: Node<T>): Paragraph[];
export declare function getId<T>(node: Node<T>): string;
export declare function hasBreadcrumbs<T>(node: Node<T>): boolean;
export declare function getBreadcrumbs<T>(node: Node<T>): Breadcrumb[];