"use client"; import React from "react"; import Link from "next/link"; import Image from "next/image"; import { useSettingsStore } from "../lib/store/settingsStore"; interface BrandLogoProps { className?: string; isDarkBackground?: boolean; href?: string; size?: "sm" | "md" | "lg"; } export default function BrandLogo({ className = "", isDarkBackground = false, href = "/", size = "md", }: BrandLogoProps) { const getText = useSettingsStore((state) => state.getText); const logoUrl = getText("site_logo", ""); const textEn = getText("site_logo_text_en", "Canina"); const textFa = getText("site_logo_text_fa", "ایران"); const subtitle = getText( "site_logo_subtitle", "نماینده رسمی CANINA PHARMA GMBH GERMANY" ); const iconSizes = { sm: "w-8 h-8 text-base rounded-xl", md: "w-10 h-10 sm:w-12 sm:h-12 text-xl sm:text-2xl rounded-2xl", lg: "w-14 h-14 sm:w-16 sm:h-16 text-2xl sm:text-3xl rounded-3xl", }; const titleSizes = { sm: "text-sm sm:text-base", md: "text-base sm:text-2xl", lg: "text-xl sm:text-3xl", }; const isBlobOrData = typeof logoUrl === 'string' && (logoUrl.startsWith('blob:') || logoUrl.startsWith('data:')); const content = (