import * as React from "react"; import cn from "clsx"; import remarkFrontmatter from "remark-frontmatter"; import ReactMarkdown from "react-markdown"; import { Nullable } from "@instill-ai/toolkit"; import { NoBgSquareProgress } from "@instill-ai/design-system"; export type ModelReadmeMarkdownProps = { markdown: Nullable; isLoading: boolean; className?: string; }; export const ModelReadmeMarkdown = ({ markdown, isLoading, className, }: ModelReadmeMarkdownProps) => { return (
{isLoading ? (
) : markdown && markdown !== "" ? (
{markdown}
) : (

There is no Model card

You can add a README.md to describe the model.

)}
); };