import React, { useCallback } from 'react';
import { CellImageEdit } from '@wix/patterns-fields';
export const ImageEdit = ({ value, onChange, onCommit, onCancel, onStartEdit, inputRef, }) => {
    const handleChange = useCallback((uri) => onChange(uri), [onChange]);
    return (React.createElement(CellImageEdit, { value: value, onChange: handleChange, onCommit: onCommit, onCancel: onCancel, onStartEdit: onStartEdit, inputRef: inputRef, dataHook: "image-edit" }));
};
//# sourceMappingURL=Edit.js.map