"use client";

import Link from "next/link";
import { CalendarIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
import {
  Tooltip,
  TooltipContent,
  TooltipTrigger,
} from "@/components/ui/tooltip";

export function CalendarButton() {
  return (
    <Tooltip>
      <TooltipTrigger asChild>
        <Link href="/calendar">
          <Button
            variant="ghost"
            size="icon"
            className="h-9 w-9"
            aria-label="Ouvrir le calendrier"
          >
            <CalendarIcon className="h-5 w-5" />
          </Button>
        </Link>
      </TooltipTrigger>
      <TooltipContent>
        <p>Calendrier</p>
      </TooltipContent>
    </Tooltip>
  );
} 