feat(header): conditionally render 'Editor' or 'GitHub' button based on environment
This commit is contained in:
@ -41,12 +41,21 @@ export function Header() {
|
|||||||
Contributors
|
Contributors
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
<Link href="https://github.com/OpenCut-app/OpenCut" target="_blank">
|
{process.env.NODE_ENV === "development" ? (
|
||||||
<Button size="sm" className="text-sm ml-4">
|
<Link href="/editor" target="_blank">
|
||||||
GitHub
|
<Button size="sm" className="text-sm ml-4">
|
||||||
<ArrowRight className="h-4 w-4" />
|
Editor
|
||||||
</Button>
|
<ArrowRight className="h-4 w-4" />
|
||||||
</Link>
|
</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>
|
</nav>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user