'use client';
import { Box, LoadingOverlay, Stack, Text, Title } from '@mantine/core';
import { useFeatureFlags } from '@/lib/clientFeatureFlags';
import GraphView from './GraphView';
/**
* Wrapper component that checks the graphView feature flag
* before rendering the GraphView component
*/
export default function GraphViewWithFeatureFlag() {
const { data: featureFlags, isLoading } = useFeatureFlags();
if (isLoading) {
return (
);
}
if (!featureFlags?.graphView) {
return (
Graph View
This feature is currently in beta and not available to all users.
);
}
return ;
}