mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-09 19:45:17 +02:00
Conditionally render voice configs in settings based on use voice feature flag
This commit is contained in:
parent
f7a4afe49d
commit
e0e643f59d
1 changed files with 2 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ import { ToolsSection } from './components/tools';
|
|||
import { Panel } from "@/components/common/panel-common";
|
||||
import { Settings, Wrench, Phone } from "lucide-react";
|
||||
import { clsx } from "clsx";
|
||||
import { USE_VOICE_FEATURE } from "@/app/lib/feature_flags";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Project config",
|
||||
|
|
@ -799,7 +800,7 @@ function NavigationMenu({
|
|||
const items = [
|
||||
{ id: 'Project', icon: <Settings className="w-4 h-4" /> },
|
||||
{ id: 'Tools', icon: <Wrench className="w-4 h-4" /> },
|
||||
{ id: 'Voice', icon: <Phone className="w-4 h-4" /> }
|
||||
...(USE_VOICE_FEATURE ? [{ id: 'Voice', icon: <Phone className="w-4 h-4" /> }] : [])
|
||||
];
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue