UNPKG

@coveord/plasma-mantine

Version:

A Plasma flavoured Mantine theme

11 lines (8 loc) 360 B
import {createSafeContext, type GetStylesApi} from '@mantine/core'; import type {CollectionFactory} from './Collection'; interface CollectionContextType { getStyles: GetStylesApi<CollectionFactory>; } export const [CollectionProvider, useCollectionContext] = createSafeContext<CollectionContextType>( 'Collection component was not found in tree', );