diff --git a/frontend-nextjs/app/components/CreateCharacter/BuildDashboard.tsx b/frontend-nextjs/app/components/CreateCharacter/BuildDashboard.tsx index 9c34ddf..ee73c96 100644 --- a/frontend-nextjs/app/components/CreateCharacter/BuildDashboard.tsx +++ b/frontend-nextjs/app/components/CreateCharacter/BuildDashboard.tsx @@ -14,7 +14,7 @@ import { v4 as uuidv4 } from 'uuid'; import { toast } from "@/components/ui/use-toast"; import { useRouter } from "next/navigation"; import { z } from "zod"; -import { emotionOptions, geminiVoices, openaiVoices, r2UrlAudio, VoiceType } from "@/lib/data"; +import { emotionOptions, geminiVoices, openaiVoices, r2UrlAudio } from "@/lib/data"; import EmojiComponent from "./EmojiComponent"; import { PitchFactors } from "@/lib/utils"; import { Slider } from "@/components/ui/slider"; diff --git a/frontend-nextjs/app/components/Nav/NavbarButtons.tsx b/frontend-nextjs/app/components/Nav/NavbarButtons.tsx index f70a8d0..54ade19 100644 --- a/frontend-nextjs/app/components/Nav/NavbarButtons.tsx +++ b/frontend-nextjs/app/components/Nav/NavbarButtons.tsx @@ -3,7 +3,6 @@ import { User } from "@supabase/supabase-js"; import Link from "next/link"; import { businessDemoLink, githubPublicLink } from "@/lib/data"; import { Separator } from "@/components/ui/separator"; -import PreorderButton from "../PreorderButton"; import { NavbarDropdownMenu } from "./NavbarDropdownMenu"; import { FaGithub } from "react-icons/fa"; import PremiumBadge from "../PremiumBadge"; diff --git a/frontend-nextjs/lib/data.ts b/frontend-nextjs/lib/data.ts index f8f5931..e49055d 100644 --- a/frontend-nextjs/lib/data.ts +++ b/frontend-nextjs/lib/data.ts @@ -38,24 +38,6 @@ export const DEVICE_COST = 55; export const ORIGINAL_COST = 111; export const SUBSCRIPTION_COST = 10; -export type VoiceType = - | { - provider: "openai"; - id: OaiVoice; - name: string; - description: string; - color: string; - emoji?: string; - } - | { - provider: "gemini"; - id: GeminiVoice; - name: string; - description: string; - color: string; - emoji?: string; - }; - export const openaiVoices: VoiceType[] = [ { id: "alloy", diff --git a/frontend-nextjs/types/types.d.ts b/frontend-nextjs/types/types.d.ts index f5a27f5..78fe002 100644 --- a/frontend-nextjs/types/types.d.ts +++ b/frontend-nextjs/types/types.d.ts @@ -98,6 +98,24 @@ declare global { is_sensitive: boolean; } + type VoiceType = + | { + provider: "openai"; + id: OaiVoice; + name: string; + description: string; + color: string; + emoji?: string; + } + | { + provider: "gemini"; + id: GeminiVoice; + name: string; + description: string; + color: string; + emoji?: string; + }; + type ModelProvider = "openai" | "gemini"; type GeminiVoice =