import { createContext, useContext } from '@wordpress/element';

export const LibraryFilterContext = createContext( {
	activeCat: 'all',
	setActiveCat: () => {},
	categories: [],
	categoryTree: [],
	featuredCount: 0,
	blockCount: 0,
} );

export function useLibraryFilter() {
	return useContext( LibraryFilterContext );
}
