mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-18 11:36:44 +08:00
feat: add file icon and add message popover content (#77)
* feat: add message popover content * feat: add file icon
This commit is contained in:
20
web/src/components/new-document-link.tsx
Normal file
20
web/src/components/new-document-link.tsx
Normal file
@ -0,0 +1,20 @@
|
||||
import { api_host } from '@/utils/api';
|
||||
import React from 'react';
|
||||
|
||||
interface IProps extends React.PropsWithChildren {
|
||||
documentId: string;
|
||||
}
|
||||
|
||||
const NewDocumentLink = ({ children, documentId }: IProps) => {
|
||||
return (
|
||||
<a
|
||||
target="_blank"
|
||||
href={`${api_host}/document/get/${documentId}`}
|
||||
rel="noreferrer"
|
||||
>
|
||||
{children}
|
||||
</a>
|
||||
);
|
||||
};
|
||||
|
||||
export default NewDocumentLink;
|
||||
Reference in New Issue
Block a user