diff --git a/pitch-deck/app/api/chat/route.ts b/pitch-deck/app/api/chat/route.ts index 7950527..8b9d4bf 100644 --- a/pitch-deck/app/api/chat/route.ts +++ b/pitch-deck/app/api/chat/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from 'next/server' import pool from '@/lib/db' -import { SLIDE_ORDER } from '@/lib/hooks/useSlideNavigation' +import { SLIDE_ORDER } from '@/lib/slide-order' const LITELLM_URL = process.env.LITELLM_URL || 'https://llm-dev.meghsakha.com' const LITELLM_MODEL = process.env.LITELLM_MODEL || 'gpt-oss-120b' diff --git a/pitch-deck/lib/hooks/useSlideNavigation.ts b/pitch-deck/lib/hooks/useSlideNavigation.ts index 695ac33..3c7c517 100644 --- a/pitch-deck/lib/hooks/useSlideNavigation.ts +++ b/pitch-deck/lib/hooks/useSlideNavigation.ts @@ -1,32 +1,10 @@ 'use client' import { useState, useCallback } from 'react' -import { SlideId } from '../types' +import { SLIDE_ORDER, TOTAL_SLIDES } from '../slide-order' -export const SLIDE_ORDER: SlideId[] = [ - 'intro-presenter', - 'cover', - 'problem', - 'solution', - 'product', - 'how-it-works', - 'market', - 'business-model', - 'traction', - 'competition', - 'team', - 'financials', - 'the-ask', - 'ai-qa', - 'annex-assumptions', - 'annex-architecture', - 'annex-gtm', - 'annex-regulatory', - 'annex-engineering', - 'annex-aipipeline', -] - -export const TOTAL_SLIDES = SLIDE_ORDER.length +// Re-export for backwards compatibility +export { SLIDE_ORDER, TOTAL_SLIDES } export function useSlideNavigation() { const [currentIndex, setCurrentIndex] = useState(0) diff --git a/pitch-deck/lib/slide-order.ts b/pitch-deck/lib/slide-order.ts new file mode 100644 index 0000000..bc3424b --- /dev/null +++ b/pitch-deck/lib/slide-order.ts @@ -0,0 +1,26 @@ +import { SlideId } from './types' + +export const SLIDE_ORDER: SlideId[] = [ + 'intro-presenter', + 'cover', + 'problem', + 'solution', + 'product', + 'how-it-works', + 'market', + 'business-model', + 'traction', + 'competition', + 'team', + 'financials', + 'the-ask', + 'ai-qa', + 'annex-assumptions', + 'annex-architecture', + 'annex-gtm', + 'annex-regulatory', + 'annex-engineering', + 'annex-aipipeline', +] + +export const TOTAL_SLIDES = SLIDE_ORDER.length