import React from "react"; import Select from "react-select"; import ReactTooltip from "react-tooltip"; function LeftPaneSteps(props) { const handleBatchMode = () => { props.setBatchMode((oldValue) => !oldValue); }; 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 }; }, }; return (
{/* BATCH OPTION */}

Batch Upscale:

{/* STEP 1 */}

Step 1

{/* STEP 2 */}

Step 2

Select Upscaling Type

props.handleDrop(e)} className="animate bg-gradient-white block cursor-pointer rounded-lg p-3 font-medium text-black/90 outline-none hover:bg-slate-200 focus-visible:ring-2 focus-visible:ring-slate-400" onChange={props.handleModelChange} > */} {props.model !== "models-DF2K" && !props.batchMode && (
{ if (e.target.checked) { props.setDoubleUpscayl(true); } else { props.setDoubleUpscayl(false); } }} />

{ props.setDoubleUpscayl(!props.doubleUpscayl); }} > Double Upscayl

i
)}
{/* STEP 3 */}

Step 3

Defaults to Image's path

{/* STEP 4 */}

Step 4

); } export default LeftPaneSteps;