2021-09-30 19:59:34 +00:00
|
|
|
import React from "react";
|
|
|
|
|
2021-09-29 21:33:18 +00:00
|
|
|
import NavTabs from "./NavTabs";
|
|
|
|
|
2022-05-26 17:07:14 +00:00
|
|
|
const tabs = [
|
|
|
|
{
|
|
|
|
name: "upcoming",
|
|
|
|
href: "/bookings/upcoming",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "recurring",
|
|
|
|
href: "/bookings/recurring",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "past",
|
|
|
|
href: "/bookings/past",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "cancelled",
|
|
|
|
href: "/bookings/cancelled",
|
|
|
|
},
|
|
|
|
];
|
2021-09-29 21:33:18 +00:00
|
|
|
|
2022-05-26 17:07:14 +00:00
|
|
|
export default function BookingsShell({ children }: { children: React.ReactNode }) {
|
2021-09-29 21:33:18 +00:00
|
|
|
return (
|
2021-09-30 19:59:34 +00:00
|
|
|
<>
|
2022-07-17 10:12:13 +00:00
|
|
|
<NavTabs tabs={tabs} />
|
2021-09-30 19:59:34 +00:00
|
|
|
<main>{children}</main>
|
|
|
|
</>
|
2021-09-29 21:33:18 +00:00
|
|
|
);
|
|
|
|
}
|