@@ -87,6 +87,7 @@ import { SideMenuItem } from "./SideMenuItem";
8787import { SideMenuSection } from "./SideMenuSection" ;
8888import { BranchEnvironmentIconSmall } from "~/assets/icons/EnvironmentIcons" ;
8989import { V4Badge } from "../V4Badge" ;
90+ import { useFeatures } from "~/hooks/useFeatures" ;
9091
9192type SideMenuUser = Pick < User , "email" | "admin" > & { isImpersonating : boolean } ;
9293export type SideMenuProject = Pick <
@@ -342,6 +343,7 @@ function ProjectSelector({
342343 const currentPlan = useCurrentPlan ( ) ;
343344 const [ isOrgMenuOpen , setOrgMenuOpen ] = useState ( false ) ;
344345 const navigation = useNavigation ( ) ;
346+ const { isManagedCloud } = useFeatures ( ) ;
345347
346348 let plan : string | undefined = undefined ;
347349 if ( currentPlan ?. v3Subscription ?. isPaying === false ) {
@@ -410,16 +412,18 @@ function ProjectSelector({
410412 < CogIcon className = "size-4 text-text-dimmed" />
411413 < span className = "text-text-bright" > Settings</ span >
412414 </ LinkButton >
413- < LinkButton
414- variant = "secondary/small"
415- to = { v3UsagePath ( organization ) }
416- fullWidth
417- iconSpacing = "gap-1.5"
418- className = "group-hover/button:border-charcoal-500"
419- >
420- < ChartBarIcon className = "size-4 text-text-dimmed" />
421- < span className = "text-text-bright" > Usage</ span >
422- </ LinkButton >
415+ { isManagedCloud && (
416+ < LinkButton
417+ variant = "secondary/small"
418+ to = { v3UsagePath ( organization ) }
419+ fullWidth
420+ iconSpacing = "gap-1.5"
421+ className = "group-hover/button:border-charcoal-500"
422+ >
423+ < ChartBarIcon className = "size-4 text-text-dimmed" />
424+ < span className = "text-text-bright" > Usage</ span >
425+ </ LinkButton >
426+ ) }
423427 </ div >
424428 </ div >
425429 < div className = "flex flex-col gap-1 p-1" >
0 commit comments