mirror of
https://github.com/soconnor0919/beenvoice.git
synced 2026-05-08 09:38:55 -04:00
0e46fdafb2
- Implemented `AdministrationContent` component for managing account roles. - Created `AdministrationPage` to serve as the main entry point for administration tasks. - Added PDF preview functionality with `PdfPreviewFrame` component for invoice generation. - Introduced `InputColor` component for advanced color selection with various formats. - Established color conversion utilities in `color-converter.ts` for handling color formats. - Defined appearance-related schemas and types in `appearance.ts` for consistent theme management.
24 lines
468 B
TypeScript
24 lines
468 B
TypeScript
"use client";
|
|
|
|
import Script from "next/script";
|
|
import { env } from "~/env";
|
|
|
|
export function UmamiScript() {
|
|
if (process.env.NODE_ENV === "development") {
|
|
return null;
|
|
}
|
|
|
|
if (!env.NEXT_PUBLIC_UMAMI_WEBSITE_ID || !env.NEXT_PUBLIC_UMAMI_SCRIPT_URL) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<Script
|
|
defer
|
|
src={env.NEXT_PUBLIC_UMAMI_SCRIPT_URL}
|
|
data-website-id={env.NEXT_PUBLIC_UMAMI_WEBSITE_ID}
|
|
strategy="afterInteractive"
|
|
/>
|
|
);
|
|
}
|