import { useCommerce } from '@framework'
import Image from 'next/image'
import { useUI } from '../context'
const DefaultLogo = ({ className = '', ...props }) => (
)
const Logo = ({ className = '', ...props }) => {
const { theme } = useUI()
console.log(theme)
// @ts-ignore
const { brand = {} } = useCommerce()
const { Logo = DefaultLogo } = brand
if (theme.logoSrc && theme.logoAlt) {
return (
)
}
return
}
export default Logo