11import { CodeBracketIcon } from "@heroicons/react/24/outline"
22import { Button } from "./button"
3- import { DocumentTextIcon as SolidDocumentTextIcon } from "@heroicons/react/24/solid"
3+ import { DocumentTextIcon as SolidDocumentTextIcon , StopCircleIcon , StopIcon } from "@heroicons/react/24/solid"
44import { FC } from "react"
55import { cn } from "@/lib/utils"
66
77export type PlanningBarProps = {
88 isGenerating ?: boolean ;
99 requestedPlan : string ;
10- nextCallback ?: ( ) => void ;
10+ stopCallback ?: ( ) => void ;
1111 className ?: string ;
1212} ;
1313
1414export const PlanningBar : FC < PlanningBarProps > = ( {
1515 isGenerating,
1616 requestedPlan,
17- nextCallback ,
17+ stopCallback ,
1818 className,
1919} ) => {
2020 return (
2121 < div
2222 className = { cn (
23- "bg-[#161718 ] w-full rounded-full flex text-white justify-between min-w-64 h-10 gap-4 relative overflow-clip" ,
23+ "bg-[#000 ] w-full rounded-full flex text-white justify-between min-w-64 h-10 gap-4 relative overflow-clip" ,
2424 className ,
2525 ) }
2626 >
@@ -38,26 +38,27 @@ export const PlanningBar: FC<PlanningBarProps> = ({
3838 </ div >
3939
4040 < div className = "flex justify-center align-middle mr-2 gap-4" >
41- < div className = "my-auto" >
41+ < div className = "m-auto flex gap-2" >
42+ < div className = "flex my-auto" >
4243 < Button
4344 variant = "default"
4445 toggled
45- className = "bg-black hover:bg-black rounded-r-none"
46+ className = "bg-black hover:bg-black rounded-r-none cursor-default "
4647 >
4748 < SolidDocumentTextIcon />
4849 </ Button >
49- < Button className = "rounded-r -none bg-blue-700/60 hover:bg-blue-700/60 " >
50+ < Button className = "rounded-l -none bg-blue-700/60 hover:bg-blue-700/60 cursor-default " >
5051 < CodeBracketIcon />
5152 </ Button >
53+ </ div >
54+
55+ < Button variant = "default" className = "my-auto" >
56+ Not Working?
57+ </ Button >
58+ < Button className = "my-auto bg-red-500/20 hover:bg-red-500/40" disabled = { ! isGenerating } onClick = { stopCallback } >
59+ < StopIcon className = "fill-red-500" />
60+ </ Button >
5261 </ div >
53- < Button
54- size = "default"
55- variant = "secondary"
56- className = "my-auto rounded-lg text-[0.9em] cursor-pointer"
57- onClick = { nextCallback }
58- >
59- Next
60- </ Button >
6162 { /* <ArrowTurnDownLeftIcon className="size-4" /> */ }
6263 </ div >
6364 </ div >
0 commit comments