import { Route, Routes } from "react-router-dom" import RouteContainer from "../../components/extensions/route-container" import { useRoutes } from "../../providers/route-provider" import GiftCardDetails from "./details" import ManageGiftCard from "./manage" import Overview from "./overview" const GiftCard = () => { const { getNestedRoutes } = useRoutes() const nestedRoutes = getNestedRoutes("/gift-cards") return ( } /> } /> } /> {nestedRoutes.map((r, i) => { return ( } /> ) })} ) } export default GiftCard