import { useState } from 'react';
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
import { useParams, useNavigate } from 'react-router-dom';
import { apiUrl, fetchPage, fetchPageAtEdit, postPage, deletePage } from '../apiTools.jsx';
import { useFixLinks } from '../clientStuff.jsx';
import { useLoggedIn } from '../AuthProvider.jsx';
import Page from './Page.jsx';

import './Pages.css';

function GhostPage({editing, ...props}) {
  const { pagenumber, editid } = useParams();

  return (
      <Page number={pagenumber} editid={editid} editing={editing} {...props}/>
  );
}

export default GhostPage;