umami/pages/[id].js
2020-07-31 19:05:14 -07:00

16 lines
355 B
JavaScript

import React from 'react';
import { useRouter } from 'next/router';
import Layout from 'components/Layout';
import WebsiteDetails from '../components/WebsiteDetails';
export default function DetailsPage() {
const router = useRouter();
const { id } = router.query;
return (
<Layout>
<WebsiteDetails websiteId={id} />
</Layout>
);
}