2021-09-30 19:59:34 +00:00
|
|
|
import React from "react";
|
|
|
|
|
2021-09-29 21:33:18 +00:00
|
|
|
import NavTabs from "./NavTabs";
|
|
|
|
|
2021-09-30 19:59:34 +00:00
|
|
|
export default function BookingsShell({ children }: { children: React.ReactNode }) {
|
2021-09-29 21:33:18 +00:00
|
|
|
const tabs = [
|
|
|
|
{
|
|
|
|
name: "Upcoming",
|
|
|
|
href: "/bookings/upcoming",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Past",
|
|
|
|
href: "/bookings/past",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Cancelled",
|
|
|
|
href: "/bookings/cancelled",
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
return (
|
2021-09-30 19:59:34 +00:00
|
|
|
<>
|
|
|
|
<NavTabs tabs={tabs} linkProps={{ shallow: true }} />
|
|
|
|
<main>{children}</main>
|
|
|
|
</>
|
2021-09-29 21:33:18 +00:00
|
|
|
);
|
|
|
|
}
|