2025-03-19 00:16:40 +08:00
|
|
|
import { AppAssetCheckLayout } from '@/layouts/AppAssetCheckLayout';
|
|
|
|
|
2025-03-19 03:04:21 +08:00
|
|
|
export default async function EmbedMetricsLayout({
|
2025-03-19 00:16:40 +08:00
|
|
|
children,
|
2025-03-19 03:36:58 +08:00
|
|
|
params
|
2025-03-19 00:16:40 +08:00
|
|
|
}: {
|
|
|
|
children: React.ReactNode;
|
2025-03-19 03:36:58 +08:00
|
|
|
params: Promise<{ metricId: string }>;
|
2025-03-19 00:16:40 +08:00
|
|
|
}) {
|
2025-03-19 03:36:58 +08:00
|
|
|
const { metricId } = await params;
|
|
|
|
|
2025-03-19 00:16:40 +08:00
|
|
|
return (
|
2025-03-19 03:04:21 +08:00
|
|
|
<AppAssetCheckLayout type="metric" assetId={metricId}>
|
2025-03-19 00:16:40 +08:00
|
|
|
{children}
|
|
|
|
</AppAssetCheckLayout>
|
|
|
|
);
|
|
|
|
}
|