import React from 'react'; import docuConfig from '@/docu.json'; // Import JSON import { SquarePenIcon } from 'lucide-react'; import Link from 'next/link'; interface EditThisPageProps { filePath: string; } const EditThisPage: React.FC = ({ filePath }) => { const { repository } = docuConfig; if (!repository?.editLink || !repository.url || !repository.editPathTemplate) return null; const editUrl = `${repository.url}${repository.editPathTemplate.replace("{filePath}", filePath)}`; return (
Edit this page
); }; export default EditThisPage;