import React from 'react';

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

interface CreateModalProps {
  onClose: () => void;
}

export const CreateModal: React.FC<CreateModalProps> = ({ onClose }) => {
  return (
    <UserFormModal
      action="create"
      onCancel={onClose}
      onMutationSuccess={onClose}
    />
  );
};
