mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-24 07:26:47 +08:00
### What problem does this PR solve? Feat: Display MCP multiple selection bar #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -13,15 +13,23 @@ export type BulkOperateItemType = {
|
||||
onClick(): void;
|
||||
};
|
||||
|
||||
type BulkOperateBarProps = { list: BulkOperateItemType[]; count: number };
|
||||
type BulkOperateBarProps = {
|
||||
list: BulkOperateItemType[];
|
||||
count: number;
|
||||
className?: string;
|
||||
};
|
||||
|
||||
export function BulkOperateBar({ list, count }: BulkOperateBarProps) {
|
||||
export function BulkOperateBar({
|
||||
list,
|
||||
count,
|
||||
className,
|
||||
}: BulkOperateBarProps) {
|
||||
const isDeleteItem = useCallback((id: string) => {
|
||||
return id === 'delete';
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<Card className="mb-4">
|
||||
<Card className={cn('mb-4', className)}>
|
||||
<CardContent className="p-1 pl-5 flex items-center gap-6">
|
||||
<section className="text-text-sub-title-invert flex items-center gap-2">
|
||||
<span>Selected: {count} Files</span>
|
||||
|
||||
Reference in New Issue
Block a user