Files
grimoire/src/components/WindowToolbar.tsx
Alejandro Gómez cd41034b2f 👶
2025-12-09 16:26:31 +01:00

24 lines
528 B
TypeScript

import { X } from "lucide-react";
import { Button } from "./ui/button";
interface WindowToolbarProps {
onClose?: () => void;
}
export function WindowToolbar({ onClose }: WindowToolbarProps) {
return (
<div className="flex items-center gap-1">
{onClose && (
<Button
variant="ghost"
size="icon"
className="size-6 text-muted-foreground hover:text-foreground"
onClick={onClose}
>
<X className="size-3" />
</Button>
)}
</div>
);
}