import React from 'react';

import { UserFormModal } from './form-modal';

interface EditModalProps {
  id?: number;
  onClose: () => void;
}

export const EditModal: React.FC<EditModalProps> = ({ id, onClose }) => {
  return (
    <UserFormModal
      action="edit"
      id={id}
      onCancel={onClose}
      onMutationSuccess={onClose}
    />
  );
};
