@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
17 lines (12 loc) • 495 B
text/typescript
import { FC } from 'react';
import { createRemarkSelfClosingTagPlugin } from '../remarkPlugins/createRemarkSelfClosingTagPlugin';
import { MarkdownElement, MarkdownElementProps } from '../type';
import RenderComponent from './Render';
// 定义此元素的标签名
const tag = 'localFile';
const LocalFileElement: MarkdownElement = {
Component: RenderComponent as FC<MarkdownElementProps>,
remarkPlugin: createRemarkSelfClosingTagPlugin(tag),
tag,
};
export default LocalFileElement;