import React from "react";
import { useParams } from "react-router-dom";

import TicketsStyled from "./Tickets.style";

import TicketsManager from "../../components/Ticket/TicketsManager/TicketsManager";
import Ticket from "../../components/Ticket/Ticket";

const Tickets = () => {
  const { ticketId } = useParams();
  return (
    <TicketsStyled>
      <TicketsManager />
      {ticketId ? <Ticket /> : <div>Não tem nada</div>}
    </TicketsStyled>
  );
};

export default Tickets;

