diff --git a/servers/nextjs/app/(presentation-generator)/outline/components/GenerateButton.tsx b/servers/nextjs/app/(presentation-generator)/outline/components/GenerateButton.tsx index 535f3d3b..98b84504 100644 --- a/servers/nextjs/app/(presentation-generator)/outline/components/GenerateButton.tsx +++ b/servers/nextjs/app/(presentation-generator)/outline/components/GenerateButton.tsx @@ -5,78 +5,80 @@ import { Button } from "@/components/ui/button"; import { LoadingState, Template } from "../types/index"; interface GenerateButtonProps { - loadingState: LoadingState; - streamState: { isStreaming: boolean, isLoading: boolean }; - selectedTemplate: Template | null; - onSubmit: () => void; - outlineCount: number; + loadingState: LoadingState; + streamState: { isStreaming: boolean; isLoading: boolean }; + selectedTemplate: Template | null; + onSubmit: () => void; + outlineCount: number; } const GenerateButton: React.FC = ({ - loadingState, - streamState, - selectedTemplate, - outlineCount, - onSubmit + loadingState, + streamState, + selectedTemplate, + outlineCount, + onSubmit, }) => { - const pathname = usePathname(); + const pathname = usePathname(); - const isDisabled = - loadingState.isLoading || - streamState.isLoading || - streamState.isStreaming + const isDisabled = + loadingState.isLoading || streamState.isLoading || streamState.isStreaming; - const getButtonText = () => { - if (loadingState.isLoading) return loadingState.message; - if (streamState.isLoading || streamState.isStreaming) return "Loading..."; - if (!selectedTemplate) return "Select a Template"; - return `Generate Presentation (${outlineCount * 1} credits)`; - }; + const getButtonText = () => { + if (loadingState.isLoading) return loadingState.message; + if (streamState.isLoading || streamState.isStreaming) return "Loading..."; + if (!selectedTemplate) return "Select a Template"; + return "Generate Presentation"; + }; - return ( - - - ); + return ( + + ); }; -export default GenerateButton; \ No newline at end of file +export default GenerateButton;