"use client";

import { Printer } from "lucide-react";
import { Button } from "@/components/ui/button";

export function YazdirButonu() {
  return (
    <div className="mb-6 flex items-center justify-between rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 print:hidden">
      <p className="text-sm text-slate-600">
        &quot;PDF olarak kaydet&quot; seçeneğiyle raporu indirebilir veya
        yazdırabilirsin.
      </p>
      <Button
        onClick={() => window.print()}
        className="cursor-pointer bg-orange-500 text-white transition-colors duration-200 hover:bg-orange-600"
      >
        <Printer className="size-4" aria-hidden />
        Yazdır / PDF kaydet
      </Button>
    </div>
  );
}
