forked from rajun/ar-test
22 lines
723 B
TypeScript
22 lines
723 B
TypeScript
import { LogoMark } from '~/components/ui/logo-mark';
|
|
import { Text } from '~/components/ui/text';
|
|
import { BRAND } from '~/data/brand';
|
|
import { cn } from '~/lib/utils';
|
|
|
|
const SIZES = {
|
|
sm: { mark: 'xs', text: 'heading' },
|
|
md: { mark: 'sm', text: 'subheading' },
|
|
} as const;
|
|
|
|
// The "t." mark with the product name: sidebar and login page
|
|
export function BrandLockup({ size = 'sm', className }: { size?: keyof typeof SIZES; className?: string }) {
|
|
return (
|
|
<span className={cn('flex items-center gap-2.5', className)}>
|
|
<LogoMark size={SIZES[size].mark} />
|
|
<Text as='span' variant={SIZES[size].text}>
|
|
{BRAND.product}
|
|
</Text>
|
|
</span>
|
|
);
|
|
}
|