feat: implement bulk account deletion and enhance account management with folder organization and drag-and-drop functionality

This commit is contained in:
Julien Froidefond
2025-11-30 12:00:29 +01:00
parent d663fbcbd0
commit c26ba9ddc6
16 changed files with 1188 additions and 261 deletions

View File

@@ -0,0 +1,35 @@
"use client";
import { Button } from "@/components/ui/button";
import { Card, CardContent } from "@/components/ui/card";
import { Trash2 } from "lucide-react";
interface AccountBulkActionsProps {
selectedCount: number;
onDelete: () => void;
}
export function AccountBulkActions({
selectedCount,
onDelete,
}: AccountBulkActionsProps) {
if (selectedCount === 0) return null;
return (
<Card className="bg-destructive/5 border-destructive/20">
<CardContent className="py-3">
<div className="flex items-center gap-4">
<span className="text-sm font-medium">
{selectedCount} compte{selectedCount > 1 ? "s" : ""} sélectionné
{selectedCount > 1 ? "s" : ""}
</span>
<Button size="sm" variant="destructive" onClick={onDelete}>
<Trash2 className="w-4 h-4 mr-1" />
Supprimer
</Button>
</div>
</CardContent>
</Card>
);
}