---
import { localizedPath } from '../i18n/utils';
import PageLayout from '../layouts/PageLayout.astro';
import PolicyDocument from '../components/shared/PolicyDocument.astro';
import { refundPolicy } from '../data/policies';
import { t } from '../i18n/ui';

export const prerender = false;

const lang = Astro.currentLocale === 'en' ? 'en' : 'ar';
const ui = t(lang);
---

<PageLayout locale={lang} title={ui.refund} breadcrumbs={[{ label: ui.home, href: localizedPath(lang, '') }, { label: ui.refund }]}>
  <PolicyDocument locale={lang} title={ui.refund} document={refundPolicy} />
</PageLayout>
