UNPKG

@selfcommunity/react-core

Version:

React Core Components useful for integrating UI Community components (react-ui).

26 lines (23 loc) 663 B
import { SCPrivateMessageSnippetType } from '@selfcommunity/types'; import { CacheStrategies } from '@selfcommunity/utils'; /** :::info This custom hook is used to fetch snippets. @param object.cacheStrategy :::tip Context can be consumed in this way: ```jsx const {snippets, isLoading} = useSCFetchPrivateMessageSnippets(); ``` ::: * @param props */ declare const useSCFetchPrivateMessageSnippets: (props?: { cacheStrategy?: CacheStrategies; }) => { data: { snippets: SCPrivateMessageSnippetType[]; isLoading: boolean; }; updateSnippets: (updatedData: any) => void; }; export default useSCFetchPrivateMessageSnippets;