Add sharing to pixel and link detail pages

This commit is contained in:
Mike Cao committed 2026-03-09 01:26:02 -07:00
1 parent c4226bc63d
commit 64bf4c378c
23 files changed
+582 -43

No files matched your search

+3 -1
View File
@@ -2,7 +2,9 @@ import { useConfig } from '@/components/hooks/useConfig';
import { LINKS_URL, PIXELS_URL } from '@/lib/constants';
export function useSlug(type: 'link' | 'pixel') {
const { linksUrl, pixelsUrl } = useConfig();
const config = useConfig();
const linksUrl = config?.linksUrl;
const pixelsUrl = config?.pixelsUrl;
const hostUrl = type === 'link' ? linksUrl || LINKS_URL : pixelsUrl || PIXELS_URL;