mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-18 19:46:44 +08:00
feat: confirm before deleting knowledge base and add ChunkToolBar (#56)
* feat: confirm before deleting knowledge base * feat: add ChunkToolBar
This commit is contained in:
@ -1,11 +1,12 @@
|
||||
import { useState } from 'react';
|
||||
|
||||
export interface IModalManagerChildrenProps {
|
||||
showModal(): void;
|
||||
hideModal(): void;
|
||||
visible: boolean;
|
||||
}
|
||||
interface IProps {
|
||||
children: (props: {
|
||||
showModal(): void;
|
||||
hideModal(): void;
|
||||
visible: boolean;
|
||||
}) => React.ReactNode;
|
||||
children: (props: IModalManagerChildrenProps) => React.ReactNode;
|
||||
}
|
||||
|
||||
const ModalManager = ({ children }: IProps) => {
|
||||
|
||||
Reference in New Issue
Block a user