Files
Compass/web/components/site-logo.tsx
2026-03-01 04:05:14 +01:00

26 lines
753 B
TypeScript

import clsx from 'clsx'
import {IS_PROD} from 'common/envs/constants'
import Link from 'next/link'
import FavIcon from 'web/components/FavIcon'
import {Row} from 'web/components/layout/row'
export default function SiteLogo(props: {noLink?: boolean; className?: string}) {
const {noLink, className} = props
const inner = (
<>
<FavIcon className="dark:invert" />
<div className={clsx('my-auto text-xl font-thin logo')}>
{IS_PROD ? 'Compass' : 'Compass dev'}
</div>
</>
)
if (noLink) {
return <Row className={clsx('gap-1 pb-2 pt-2 sm:pt-6', className)}>{inner}</Row>
}
return (
<Link href={'/home'} className={clsx('flex flex-row gap-1 pb-2 pt-2 sm:pt-6', className)}>
{inner}
</Link>
)
}