import React from 'react';
import { Link } from 'react-router-dom';

export function MinimalHeader() {
  const storeLogo = (window as any).woonoowCustomer?.storeLogo;
  const storeName = (window as any).woonoowCustomer?.storeName || (window as any).woonoowCustomer?.siteTitle || 'Store';

  return (
    <header className="minimal-header bg-white border-b py-4">
      <div className="container mx-auto px-4">
        <div className="flex items-center justify-center">
          <Link to="/shop" className="flex items-center gap-2">
            {storeLogo ? (
              <img 
                src={storeLogo} 
                alt={storeName} 
                className="h-8 object-contain !max-w-[300px]" 
              />
            ) : (
              <span className="text-xl font-semibold text-gray-900">{storeName}</span>
            )}
          </Link>
        </div>
      </div>
    </header>
  );
}
