import type { UppyFile } from '@uppy/core' import { useImageEditor } from '@uppy/react' interface ImageEditorProps { file: UppyFile close: () => void } export function ImageEditor({ file, close }: ImageEditorProps) { const { state, getImageProps, getSaveButtonProps, getCancelButtonProps, getRotateButtonProps, getFlipHorizontalButtonProps, getZoomButtonProps, getCropSquareButtonProps, getCropLandscapeButtonProps, getCropPortraitButtonProps, getResetButtonProps, getRotationSliderProps, } = useImageEditor({ file }) return (

Edit Image

{/* biome-ignore lint/a11y/useAltText: alt is provided by getImageProps() */}
) } export default ImageEditor