28 lines
668 B
TypeScript
Executable File
28 lines
668 B
TypeScript
Executable File
import Link from "next/link"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
interface HpsLogoProps {
|
|
showCompanyName?: boolean
|
|
showPhone?: boolean
|
|
size?: "sm" | "md" | "lg"
|
|
className?: string
|
|
}
|
|
|
|
export function HpsLogo({ showCompanyName = false, showPhone = false, size = "md", className }: HpsLogoProps) {
|
|
const heightMap = {
|
|
sm: "h-10",
|
|
md: "h-14",
|
|
lg: "h-20",
|
|
}
|
|
|
|
return (
|
|
<Link href="/" className={cn("inline-block transition-opacity hover:opacity-90", className)}>
|
|
<img
|
|
src="/hps-logo-full.png"
|
|
alt="HPS - High Performance Structures"
|
|
className={`${heightMap[size]} w-auto object-contain`}
|
|
/>
|
|
</Link>
|
|
)
|
|
}
|