diff options
Diffstat (limited to 'apps/web/src/components/header.tsx')
| -rw-r--r-- | apps/web/src/components/header.tsx | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/apps/web/src/components/header.tsx b/apps/web/src/components/header.tsx index 812b0afc..27503cd0 100644 --- a/apps/web/src/components/header.tsx +++ b/apps/web/src/components/header.tsx @@ -41,17 +41,21 @@ export function Header() { Contributors
</Button>
</Link>
- <Link href="https://github.com/OpenCut-app/OpenCut" target="_blank">
- <Button variant="text" className="text-sm">
- GitHub
- </Button>
- </Link>
- <Link href={session ? "/editor" : "/auth/login"}>
- <Button size="sm" className="text-sm ml-4">
- Start editing
- <ArrowRight className="h-4 w-4" />
- </Button>
- </Link>
+ {process.env.NODE_ENV === "development" ? (
+ <Link href="/editor">
+ <Button size="sm" className="text-sm ml-4">
+ Editor
+ <ArrowRight className="h-4 w-4" />
+ </Button>
+ </Link>
+ ) : (
+ <Link href="https://github.com/OpenCut-app/OpenCut" target="_blank">
+ <Button size="sm" className="text-sm ml-4">
+ GitHub
+ <ArrowRight className="h-4 w-4" />
+ </Button>
+ </Link>
+ )}
</nav>
);
|
