import React, { useState } from "react"; import { history } from "../../utils/history"; import './style.scoped.scss'; const Tab = ({ label, icon, url }) => { const [isActive, setIsActive] = useState(history.location.pathname === url); return (
icon

{label}

); }; export default Tab;