flagon-io/g1t

public

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t/apps/web/app/components/repo-settings-tabs.tsx

32 lines1,085 bytesCodeBlame
1import { GitBranch, Lock, Network, Rocket, Settings, Webhook } from "lucide-react";
2
3import { TabLink } from "./ui";
4
5/**
6 * A project's settings, and its repository's: what is about running it
7 * first, then what is about the code.
8 */
9export function RepoSettingsTabs({ base }: { base: string }) {
10 return (
11 <nav className="mb-8 flex gap-x-6 border-b border-line">
12 <TabLink to={`${base}/settings`} end icon={<Settings size={15} />}>
13 General
14 </TabLink>
15 <TabLink to={`${base}/settings/deployments`} icon={<Rocket size={15} />}>
16 Deployments
17 </TabLink>
18 <TabLink to={`${base}/settings/dependencies`} icon={<Network size={15} />}>
19 Dependencies
20 </TabLink>
21 <TabLink to={`${base}/settings/secrets`} icon={<Lock size={15} />}>
22 Secrets and variables
23 </TabLink>
24 <TabLink to={`${base}/settings/repository`} icon={<GitBranch size={15} />}>
25 Repository
26 </TabLink>
27 <TabLink to={`${base}/settings/webhooks`} icon={<Webhook size={15} />}>
28 Webhooks
29 </TabLink>
30 </nav>
31 );
32}