Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

466 B
Raw Blame
import type { Metadata } from 'next';
import { getPixel } from '@/queries/prisma';
import { PixelEditPage } from './PixelEditPage';

export default async function ({ params }: { params: Promise<{ pixelId: string }> }) {
  const { pixelId } = await params;
  const pixel = await getPixel(pixelId);

  if (!pixel || pixel.deletedAt) {
    return null;
  }

  return <PixelEditPage pixelId={pixelId} />;
}

export const metadata: Metadata = {
  title: 'Edit Pixel',
};