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