"use client";
import Image from "next/image";
import { urlFor } from "@/sanity/lib/image";
import { SETTINGS_QUERY_RESULT } from "@/sanity.types";
export default function Logo({
settings,
}: {
settings: SETTINGS_QUERY_RESULT;
}) {
// Brand is permanently light mode, default to light logo then dark logo fallback
const logoToUse = settings?.logo?.light || settings?.logo?.dark;
return logoToUse ? (