2021-09-29 21:33:18 +00:00
|
|
|
import { CodeIcon, CreditCardIcon, KeyIcon, UserGroupIcon, UserIcon } from "@heroicons/react/solid";
|
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 SettingsShell({ children }: { children: React.ReactNode }) {
|
2021-09-29 21:33:18 +00:00
|
|
|
const tabs = [
|
|
|
|
{
|
|
|
|
name: "Profile",
|
|
|
|
href: "/settings/profile",
|
|
|
|
icon: UserIcon,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Security",
|
|
|
|
href: "/settings/security",
|
|
|
|
icon: KeyIcon,
|
|
|
|
},
|
2021-10-07 15:14:47 +00:00
|
|
|
{ name: "Embed & Webhooks", href: "/settings/embed", icon: CodeIcon },
|
2021-09-29 21:33:18 +00:00
|
|
|
{
|
|
|
|
name: "Teams",
|
|
|
|
href: "/settings/teams",
|
|
|
|
icon: UserGroupIcon,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Billing",
|
|
|
|
href: "/settings/billing",
|
|
|
|
icon: CreditCardIcon,
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
return (
|
2021-09-30 19:59:34 +00:00
|
|
|
<>
|
2021-09-29 21:33:18 +00:00
|
|
|
<div className="sm:mx-auto">
|
|
|
|
<NavTabs tabs={tabs} />
|
|
|
|
</div>
|
2021-09-30 19:59:34 +00:00
|
|
|
<main className="max-w-4xl">{children}</main>
|
|
|
|
</>
|
2021-09-29 21:33:18 +00:00
|
|
|
);
|
|
|
|
}
|