buster/web/src/app/embed/metrics/[metricId]/layout.tsx

18 lines
381 B
TypeScript

import { AppAssetCheckLayout } from '@/layouts/AppAssetCheckLayout';
export default async function EmbedMetricsLayout({
children,
params
}: {
children: React.ReactNode;
params: Promise<{ metricId: string }>;
}) {
const { metricId } = await params;
return (
<AppAssetCheckLayout type="metric" assetId={metricId}>
{children}
</AppAssetCheckLayout>
);
}