---
import Layout from '@/layouts/base.astro';
import { getCollection } from 'astro:content';
import { getLocale } from '@/lib/locale';
import ShortHero from '@/components/ui/short-hero';

const locale = getLocale(Astro);
const [entry] = await getCollection('notFound', (e) => e.id === `${locale}/main`);
if (!entry) throw new Error(`Missing not-found content for locale: ${locale}`);

const notFound = entry.data;
---

<Layout title={notFound.title} noindex={true}>
    <ShortHero
    client:load
    content={{
      title: notFound.title,
      subtitle: notFound.message,
      imageSrc: "/images/short-hero.webp",
      imageAlt: "Peintres décorateurs au travail",
    }}
  />

  
</Layout>
