mirror of
https://github.com/coder/coder.git
synced 2026-11-12 04:32:47 +08:00
9 lines
327 B
TypeScript
9 lines
327 B
TypeScript
import type { FeatureName } from "api/typesGenerated";
|
|
import { selectFeatureVisibility } from "./entitlements";
|
|
import { useDashboard } from "./useDashboard";
|
|
|
|
export const useFeatureVisibility = (): Record<FeatureName, boolean> => {
|
|
const { entitlements } = useDashboard();
|
|
return selectFeatureVisibility(entitlements);
|
|
};
|