mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 20:45:39 +01:00
Updated components build.
This commit is contained in:
parent
5f27ba149b
commit
56af91950a
53 changed files with 942 additions and 333 deletions
|
|
@ -1,9 +1,10 @@
|
|||
'use client';
|
||||
import { createContext, ReactNode } from 'react';
|
||||
import { usePixelQuery } from '@/components/hooks';
|
||||
import { Loading } from '@umami/react-zen';
|
||||
import { Pixel } from '@/generated/prisma/client';
|
||||
import { usePixelQuery } from '@/components/hooks/queries/usePixelQuery';
|
||||
|
||||
export const PixelContext = createContext(null);
|
||||
export const PixelContext = createContext<Pixel>(null);
|
||||
|
||||
export function PixelProvider({ pixelId, children }: { pixelId?: string; children: ReactNode }) {
|
||||
const { data: pixel, isLoading, isFetching } = usePixelQuery(pixelId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue