import { BrowserRouter, Routes, Route, Navigate, useLocation } from "react-router-dom";
import EmployeeCard from "./screen/EmployeeCard";


export default function App() {
  return (
    <BrowserRouter>
      <Routes>
        <Route
          path="/empleado"
          element={
            <EmployeeCard />
          }
        />

        <Route path="*" element={<Navigate to="/empleado" replace />} />
      </Routes>
    </BrowserRouter>
  );
}