import React, { Fragment } from "react"; import { NavLink } from "react-router-dom"; import { Tab } from "@headlessui/react"; type NavTabProps = { href: string; }; // TODO: migrate activeClassName because of: https://github.com/remix-run/react-router/releases/tag/v5.3.0 // TODO: @types/react-router-dom still doesn't support function in className const NavTab: React.FC = ({ href, children }) => ( {children} ); export default NavTab;