---
import { getI18n } from "src/i18n/i18n";
import type { EndpointSource } from "src/shared/payload/payload-sdk";
interface Props {
source: EndpointSource;
}
const { source } = Astro.props;
const { formatEndpointSource } = await getI18n(Astro.locals.currentLocale);
const {
href,
typeLabel,
label,
target = undefined,
rel = undefined,
lang,
} = formatEndpointSource(source);
---
{/* ------------------------------------------- HTML ------------------------------------------- */}
{typeLabel}
{label}
{/* ------------------------------------------- CSS -------------------------------------------- */}