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>
36 lines
1.0 KiB
TypeScript
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>
|
|
)
|
|
}
|