mirror of
https://github.com/vercel/commerce.git
synced 2025-05-14 13:47:49 +00:00
21 lines
510 B
TypeScript
21 lines
510 B
TypeScript
import clsx from 'clsx';
|
|
import LogoIcon from './icons/logo';
|
|
|
|
export default function LogoSquare({ size }: { size?: 'sm' | undefined }) {
|
|
return (
|
|
<div
|
|
className={clsx('flex flex-none items-center justify-center', {
|
|
'h-[40px] w-[40px] rounded-xl': !size,
|
|
'h-[30px] w-[30px] rounded-lg': size === 'sm'
|
|
})}
|
|
>
|
|
<LogoIcon
|
|
className={clsx({
|
|
'h-[16px] w-[16px]': !size,
|
|
'h-[10px] w-[10px]': size === 'sm'
|
|
})}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|