import React from "react";
import TicketSearchBtn from "../TicketSearchBtn/TicketSearchBtn";
import { TicketSearchDivStyled, TicketSearchInputStyled } from "./TicketSearchInput.styled";

const TicketSearchInput = ({ setNewTicketModalOpen, handleSearch }) => {
  return (
    <TicketSearchDivStyled>
      <TicketSearchInputStyled onChange={handleSearch} />
      <TicketSearchBtn setNewTicketModalOpen={setNewTicketModalOpen} />
    </TicketSearchDivStyled>
  );
};

export default TicketSearchInput;

