commerce/components/logo-square.tsx
leonmargaritis feaa87a9c8
feat: init commercetools setup (#1)
* feat: init commercetools setup

---------

Co-authored-by: Anja-Janina Stiefermann <anja.stiefermann@kernpunkt.de>
2023-11-17 11:39:54 +01:00

24 lines
613 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 border border-neutral-200 bg-white dark:border-neutral-700 dark:bg-black",
{
"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>
);
}