import React from 'react'; interface LogoProps { themeConfig: { logo: { src?: string; alt?: string; width?: number; height?: number; }; }; } export default function Logo({ themeConfig: { logo: { src, alt = 'Evershop', width = 128, height = 128 } } }: LogoProps) { return (
{src && ( {alt} )} {!src && ( )}
); } export const layout = { areaId: 'headerMiddleCenter', sortOrder: 10 }; export const query = ` query query { themeConfig { logo { src alt width height } } } `;