grafana_bak/public/app/features/dashboard/containers/PublicDashboardPageProxy.tsx
2025-04-01 10:38:02 +09:00

18 lines
541 B
TypeScript

import { config } from '@grafana/runtime';
import { PublicDashboardScenePage } from '../../dashboard-scene/pages/PublicDashboardScenePage';
import PublicDashboardPage, { type Props } from './PublicDashboardPage';
export type PublicDashboardPageProxyProps = Props;
function PublicDashboardPageProxy(props: PublicDashboardPageProxyProps) {
if (config.featureToggles.publicDashboardsScene) {
return <PublicDashboardScenePage {...props} />;
}
return <PublicDashboardPage {...props} />;
}
export default PublicDashboardPageProxy;