mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
8 lines
219 B
TypeScript
8 lines
219 B
TypeScript
import { WebsiteContext } from '@/app/(main)/websites/[websiteId]/WebsiteProvider';
|
|
import { useContext } from 'react';
|
|
|
|
export function useWebsite() {
|
|
const website = useContext(WebsiteContext);
|
|
|
|
return website;
|
|
}
|