mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-22 22:26:43 +08:00
### What problem does this PR solve? memory function complete ### Type of change - [x] New Feature (non-breaking change which adds functionality)
50 lines
1.4 KiB
TypeScript
50 lines
1.4 KiB
TypeScript
import ListFilterBar from '@/components/list-filter-bar';
|
|
import { t } from 'i18next';
|
|
import { useFetchMemoryMessageList } from './hook';
|
|
import { MemoryTable } from './message-table';
|
|
|
|
export default function MemoryMessage() {
|
|
const {
|
|
searchString,
|
|
// documents,
|
|
data,
|
|
pagination,
|
|
handleInputChange,
|
|
setPagination,
|
|
// filterValue,
|
|
// handleFilterSubmit,
|
|
loading,
|
|
} = useFetchMemoryMessageList();
|
|
return (
|
|
<div className="flex flex-col gap-2">
|
|
<ListFilterBar
|
|
title="Dataset"
|
|
onSearchChange={handleInputChange}
|
|
searchString={searchString}
|
|
showFilter={false}
|
|
// value={filterValue}
|
|
// onChange={handleFilterSubmit}
|
|
// onOpenChange={onOpenChange}
|
|
// filters={filters}
|
|
leftPanel={
|
|
<div className="items-start">
|
|
<div className="pb-1">{t('memory.sideBar.messages')}</div>
|
|
<div className="text-text-secondary text-sm">
|
|
{t('memory.messages.messageDescription')}
|
|
</div>
|
|
</div>
|
|
}
|
|
></ListFilterBar>
|
|
<MemoryTable
|
|
messages={data?.messages?.message_list ?? []}
|
|
pagination={pagination}
|
|
setPagination={setPagination}
|
|
total={data?.messages?.total ?? 0}
|
|
// rowSelection={rowSelection}
|
|
// setRowSelection={setRowSelection}
|
|
// loading={loading}
|
|
></MemoryTable>
|
|
</div>
|
|
);
|
|
}
|