import React from "react"; import Select from "react-select"; interface IProps { progress: string; selectVideoHandler: () => Promise; handleModelChange: (e: any) => void; handleDrop: (e: any) => void; outputHandler: () => Promise; upscaylHandler: () => Promise; videoPath: string; outputPath: string; model: string; isVideo: boolean; setIsVideo: (arg: boolean) => void; } function LeftPaneVideoSteps({ progress, selectVideoHandler, handleModelChange, handleDrop, outputHandler, upscaylHandler, videoPath, outputPath, model, isVideo, setIsVideo, }: IProps) { const customStyles = { option: (provided, state) => ({ ...provided, borderBottom: "1px dotted pink", color: state.isSelected ? "red" : "blue", padding: 20, }), control: () => ({ // none of react-select's styles are passed to width: 200, }), singleValue: (provided, state) => { const opacity = state.isDisabled ? 0.5 : 1; const transition = "opacity 300ms"; return { ...provided, opacity, transition }; }, }; const modelOptions = [ { label: "2x Digital Art", value: "realesr-animevideov3-x2" }, { label: "3x Digital Art", value: "realesr-animevideov3-x3" }, { label: "4x Digital Art", value: "realesr-animevideov3-x4" }, ]; return (
{/* STEP 1 */}

Step 1

{/* STEP 2 */}

Step 2

Select Scaling