const pageFromPath = {
  '/': 'home',
  '/index.html': 'home',
  '/agents': 'agents',
  '/agents.html': 'agents',
  '/coding-agents': 'codingAgents',
  '/coding-agents.html': 'codingAgents',
  '/chain-verifier': 'chainVerifier',
  '/chain-verifier.html': 'chainVerifier',
  '/integrations': 'integrations',
  '/integrations.html': 'integrations',
  '/evidence-packs': 'evidencePacks',
  '/evidence-packs.html': 'evidencePacks',
  '/trust': 'trust',
  '/trust.html': 'trust',
  '/app': 'app',
  '/app.html': 'app',
  '/pricing': 'pricing',
  '/pricing.html': 'pricing',
  '/compliance': 'compliance',
  '/compliance.html': 'compliance',
  '/proof-vs-logs': 'proofVsLogs',
  '/proof-vs-logs.html': 'proofVsLogs',
};

const page = document.body.dataset.page || pageFromPath[window.location.pathname] || 'home';
ReactDOM.createRoot(document.getElementById('root')).render(<ProofSitePage page={page} />);
