'use client' import type { StudioPageType } from '.' import { cn } from '@langgenius/dify-ui/cn' import Link from '@/next/link' type Props = { pageType: StudioPageType appsLabel: string snippetsLabel: string showSnippets?: boolean } const StudioRouteSwitch = ({ pageType, appsLabel, snippetsLabel, showSnippets = true, }: Props) => { return (
{appsLabel} {showSnippets && ( {snippetsLabel} )}
) } export default StudioRouteSwitch