import React from "react";
import { Modal, Text } from "react-native";

interface CreateOrUpdateHaulModalProps {
  isVisible: boolean;
  onClose: () => void;
  haulData?: Model.FishingLog | null;
}

const CreateOrUpdateHaulModal: React.FC<CreateOrUpdateHaulModalProps> = ({
  isVisible,
  onClose,
  haulData,
}) => {
  const [isCreateMode, setIsCreateMode] = React.useState(!haulData);

  return (
    <Modal
      visible={isVisible}
      animationType="slide"
      presentationStyle="pageSheet"
      onRequestClose={onClose}
    >
      <Text>{isCreateMode ? "Create Haul" : "Update Haul"}</Text>
    </Modal>
  );
};

export default CreateOrUpdateHaulModal;
