import { BrowserRouter, Routes, Route } from "react-router-dom";
import EmployeeCard from "./components/EmployeeCard";
import IdCardGenerator from "./Generator";

export default function App() {

  return (

    <BrowserRouter>

      <Routes>

        <Route
          path="/employee"
          element={<IdCardGenerator />}
        />

        <Route
          path="/employee/:employeeNumber"
          element={<EmployeeCard />}
        />

      </Routes>

    </BrowserRouter>

  );

}