forked from FlowwStar/FlowStar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrand.tsx
More file actions
27 lines (24 loc) · 745 Bytes
/
Copy pathbrand.tsx
File metadata and controls
27 lines (24 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import Link from 'next/link'
import { Waves } from 'lucide-react'
import { cn } from '@/lib/utils'
export const APP_NAME = 'FlowStar'
interface BrandProps {
href?: string
className?: string
showWordmark?: boolean
}
export function Brand({ href = '/', className, showWordmark = true }: BrandProps) {
return (
<Link
href={href}
className={cn('flex items-center gap-2.5 font-semibold', className)}
>
<span className="flex size-8 items-center justify-center rounded-lg bg-primary text-primary-foreground">
<Waves className="size-4.5" strokeWidth={2.5} />
</span>
{showWordmark && (
<span className="text-lg tracking-tight text-foreground">{APP_NAME}</span>
)}
</Link>
)
}