predikt/oracle/web/pages/election/[[...slug]].tsx
caelum0x 2b68bde5d5 Predikt: full Polymarket-style prediction market — web + mobile + on-chain + bots
Working tree is now the canonical repo. Off-chain play-money + trustless on-chain
(FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution,
mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 23:29:50 +03:00

36 lines
1.0 KiB
TypeScript

import { ElectionsPageProps } from 'web/public/data/elections-data'
import { getElectionsPageProps } from 'web/lib/politics/home'
import { Page } from 'web/components/layout/page'
import { SEO } from 'web/components/SEO'
import { USElectionsPage } from 'web/components/elections-page'
import { useSaveCampaign } from 'web/hooks/use-save-campaign'
export async function getStaticPaths() {
return { paths: [], fallback: 'blocking' }
}
const revalidate = 60
export async function getStaticProps() {
const electionsPageProps = await getElectionsPageProps()
return {
props: electionsPageProps,
revalidate,
}
}
export default function Elections(props: ElectionsPageProps) {
useSaveCampaign()
return (
<Page trackPageView="us midterms page 2026">
<SEO
title="Predikt Elections"
description="Live prediction market odds on US elections — the 2028 presidential race and the 2026 midterms"
image="/election-map24.png"
/>
<USElectionsPage {...props} />
</Page>
)
}