import { Castle } from "lucide-react";
import Link from "next/link";
import { cn } from "@/lib/utils/cn";

interface LogoProps {
  className?: string;
  showText?: boolean;
  textClassName?: string;
}

export function Logo({ className, showText = true, textClassName }: LogoProps) {
  return (
    <Link href="/" className={cn("flex items-center gap-2.5", className)}>
      <Castle className="h-5 w-5 shrink-0 text-accent" strokeWidth={2} />
      {showText && (
        <span
          className={cn(
            "text-base font-extrabold tracking-wide",
            textClassName
          )}
        >
          SurveyStronghold
        </span>
      )}
    </Link>
  );
}
