@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.
19 lines (13 loc) • 569 B
text/typescript
import { FC } from 'react';
import { LOCAL_FILE_TAG } from '@/const/plugin';
import { createRemarkSelfClosingTagPlugin } from '../remarkPlugins/createRemarkSelfClosingTagPlugin';
import { MarkdownElement, MarkdownElementProps } from '../type';
import RenderComponent from './Render';
// 定义此元素的标签名
const LocalFileElement: MarkdownElement = {
Component: RenderComponent as FC<MarkdownElementProps>,
remarkPlugin: createRemarkSelfClosingTagPlugin(LOCAL_FILE_TAG),
scope: 'assistant',
tag: LOCAL_FILE_TAG,
};
export default LocalFileElement;