mirror of
https://github.com/vercel/commerce.git
synced 2025-07-31 22:11:24 +00:00
.github
.vscode
.yarn
app
components
cart
grid
icons
layout
product
video
carousel.tsx
label.tsx
loading-dots.tsx
logo-square.tsx
opengraph-image.tsx
price.tsx
prose.tsx
deprecated
fonts
lib
messages
public
.editorconfig
.env.example
.eslintrc.js
.gitattributes
.gitignore
.node-version
.nvmrc
.prettierignore
.yarnrc.yml
README.md
license.md
middleware.ts
next.config.js
package.json
postcss.config.js
prettier.config.js
tailwind.config.js
tsconfig.json
yarn.lock
21 lines
480 B
TypeScript
21 lines
480 B
TypeScript
import clsx from 'clsx';
|
|
import Logo 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]': !size,
|
|
'h-[30px] w-[30px]': size === 'sm'
|
|
})}
|
|
>
|
|
<Logo
|
|
className={clsx({
|
|
'h-[16px] w-[16px]': !size,
|
|
'h-[10px] w-[10px]': size === 'sm'
|
|
})}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|