umami/pages/settings/websites/[id]/index.js
2023-01-09 23:59:26 -08:00

21 lines
511 B
JavaScript

import { useRouter } from 'next/router';
import WebsiteDetails from 'components/pages/settings/websites/WebsiteDetails';
import useUser from 'hooks/useUser';
import SettingsLayout from 'components/pages/settings/SettingsLayout';
export default function WebsiteSettingsPage() {
const user = useUser();
const router = useRouter();
const { id } = router.query;
if (!id || !user) {
return null;
}
return (
<SettingsLayout>
<WebsiteDetails websiteId={id} />
</SettingsLayout>
);
}