mirror of
https://github.com/XFox111/my-website.git
synced 2026-04-22 07:28:01 +03:00
refactor: moved analytics checks to a separate file
This commit is contained in:
@@ -2,6 +2,7 @@ import Package from "@/../package.json";
|
||||
import Button from "@/_components/Button";
|
||||
import { canonicalName, getTitle } from "@/_data/metadata";
|
||||
import ThirdPartyAttribution from "@/_data/ThirdPartyAttributiont";
|
||||
import { analyticsEnabled } from "@/_utils/analytics/server";
|
||||
import { ArrowLeft24Regular, ArrowRight24Regular } from "@fluentui/react-icons";
|
||||
import { Metadata } from "next";
|
||||
import React from "react";
|
||||
@@ -23,7 +24,7 @@ const AttributionPage: React.FC = () => (
|
||||
<article>
|
||||
<h1>Attrubtions & information</h1>
|
||||
|
||||
{ process.env.CLARITY_ID &&
|
||||
{ analyticsEnabled() &&
|
||||
<section>
|
||||
<h2>Privacy policy</h2>
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user