---
import { pb, getImageUrl } from '@lib/pocketbase';

// Уникальный ключ 'logo_main'
const logoData = await pb.collection('logo').getFirstListItem('', {
  requestKey: 'logo_main'
});
---

<a href={logoData.link_url} class="flex items-center">
  <img
    src={getImageUrl(logoData, logoData.image)}
    alt={logoData.alt_text}
    width={logoData.width}
    height={logoData.height}
    loading="eager"
    fetchpriority="high"
    class="w-8 object-contain"
  />
</a>