---

import { GITHUB_REPO_URL } from '@/consts';

type Props = {
  filePath: string;
};

const { filePath } = Astro.props;
const editUrl = `${GITHUB_REPO_URL}edit/main/${filePath}`;
---

<div class="mx-auto w-full max-w-3xl">
  <a
    href={editUrl}
    target="_blank"
    rel="noopener noreferrer"
    class="text-p3 underline intent:decoration-gold"
  >
    Edit page
  </a>
</div>
