@navinc/base-react-components
Version:
Nav's Pattern Library
26 lines (25 loc) • 912 B
TypeScript
import { ReactNode } from 'react';
export declare const transformHTML: (content?: string) => ReactNode;
type ArticleProps = {
/** Should have name, bio, jobTitle and image properties */
author: {
name: string;
bio: string;
jobTitle: string;
image: string;
};
/** Date that the article was written */
dateGmt: string;
/** The whole article that is pulled from Wordpress (raw html) */
content: string;
/** Date for the last time the article was updated */
modifiedGmt: string;
/** Minified text for the article, in raw html */
excerpt: string;
/** Title for the article */
title: string;
/** Defining if the article should start open */
shouldStartOpen?: boolean;
};
export declare const Article: ({ author, dateGmt, content, modifiedGmt, excerpt, title, shouldStartOpen }: ArticleProps) => JSX.Element | null;
export {};