"use client";
import React from "react";
import Link from "next/link";

type CreateNewButtonProps = {
  href: string;
  label?: string;
  className?: string;
};

export default function CreateNewButton({ href, label = "Nouveau", className = "" }: CreateNewButtonProps) {
  return (
    <Link
      href={href}
      className={`bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700 transition inline-flex items-center gap-2 ${className}`}
    >
      <span className="text-lg leading-none">+</span>
      <span>{label}</span>
    </Link>
  );
}


