import WithDraggable from "@/components/common/draggable/withDraggable";
import { useState } from "react";

export default function ImageSize(){
    const [sizeValue, setSizeValue] = useState(100)
    return(
        <WithDraggable isShow={true} size={'xxxm'}>
                <div className="modal-head handle">
                    <h1 className="title">画像のサイズ変更 </h1>
                    <button className="modal-close">닫기</button>
                </div>
                <div className="modal-body">
                <div className="left-bar handle"></div>
                <div className="right-bar handle"></div>
                    <div className="range-wrap">
                        <input type="range" id="size" name="volume" min="20" max="200" step={10} value={sizeValue} onChange={(e) => setSizeValue(e.target.value)}/>
                        <label htmlFor="size">{sizeValue}%</label>
                    </div>
                </div>
                <div className="modal-foot handle"></div>
        </WithDraggable>
    )
}