mirror of
https://github.com/vercel/commerce.git
synced 2025-05-12 12:47:50 +00:00
28 lines
615 B
TypeScript
28 lines
615 B
TypeScript
import Image from 'next/image';
|
|
|
|
const { STORE_PREFIX } = process.env;
|
|
export default function LogoSquare({ dark = false }: { dark?: boolean }) {
|
|
return (
|
|
<div className="w-36 sm:w-auto">
|
|
{dark ? (
|
|
<Image
|
|
src={`/${STORE_PREFIX}/dark-logo.svg`}
|
|
alt="Logo"
|
|
width={327}
|
|
height={61}
|
|
priority
|
|
className="h-full w-full"
|
|
/>
|
|
) : (
|
|
<Image
|
|
src={`/${STORE_PREFIX}/logo.svg`}
|
|
alt="Logo"
|
|
width={327}
|
|
height={61}
|
|
className="h-full w-full"
|
|
/>
|
|
)}
|
|
</div>
|
|
);
|
|
}
|