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 ( {theme.logoAlt} ) } return } export default Logo