UNPKG

@hhgtech/hhg-components

Version:
20 lines (19 loc) 1.09 kB
import type { DetailedHTMLProps, AnchorHTMLAttributes } from 'react'; import { LOCALE } from "../../../interfaces/types/Locale"; import { Article, ReviewedUserApi } from "../../../together/interfaces/types"; export declare const getAuthorFormatOptionsProps: (reviewedUser?: ReviewedUserApi | null) => DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>; export type AuthorFormatMessageOptionsKeys = 'author_name' | 'expert_display_name' | 'fact_check_display_name' | 'specialty' | 'organisation' | 'post_modified'; export type AuthorFormatMessage = { intlKey: string; indicator: string; avatar: string; avatar_alt: string; avatar_permalink: string; formatOptions: Partial<Record<AuthorFormatMessageOptionsKeys, DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>>>; }; export declare function getAuthorForBoostCard({ article, locale, assetImageBase, version, }: { article: Article; locale: LOCALE; assetImageBase: string; version?: 'long' | 'short'; }): AuthorFormatMessage;