import React, { useEffect } from "react";
const ImageOptions = ({
zoomAmount,
setZoomAmount,
resetImagePaths,
hideZoomOptions,
}: {
zoomAmount: string;
setZoomAmount: (arg: any) => void;
resetImagePaths: () => void;
hideZoomOptions?: boolean;
}) => {
useEffect(() => {
if (!localStorage.getItem("zoomAmount")) {
localStorage.setItem("zoomAmount", zoomAmount);
} else {
setZoomAmount(localStorage.getItem("zoomAmount"));
}
}, []);
return (
{/*
*/}
Show/Hide Image Settings
{!hideZoomOptions && (
Zoom:
)}
);
};
export default ImageOptions;