"use client";

import { Button } from "@/components/ui/button";
import { getContactLink } from "@/lib/constants";
import { cn } from "@/lib/utils";

interface CallButtonProps {
    variant?: "blue" | "amber";
    fullWidth?: boolean;
    text?: string;
    showIcon?: boolean;
    rounded?: boolean;
    page?: string;
}

export default function CallButton({
    variant = "blue",
    fullWidth,
    text,
    rounded,
    page,
}: CallButtonProps) {
    return (
        <a href={getContactLink(page)}>
            <Button
                size="lg"
                variant={variant}
                className={cn(fullWidth ? "w-full" : "")}
                rounded={rounded ? "full" : "default"}
            >
                <p>{text ? text : "Call Now"}</p>
            </Button>
        </a>
    );
}
