mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-10 07:27:23 +02:00
24 lines
528 B
TypeScript
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>
|
|
);
|
|
}
|