import FileSaver from "file-saver"; import "./ImageOutput.css"; interface OutputProps { imageData: Uint8ClampedArray; } function ImageOutput({ imageData }: OutputProps) { const imageBlob = new Blob([imageData], { type: "image/png" }); const imageUrl = URL.createObjectURL(imageBlob); const handleClick = () => { FileSaver.saveAs(imageBlob, "image.png"); }; return (
); } export default ImageOutput;