UNPKG

@selfcommunity/react-core

Version:

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

22 lines (19 loc) 441 B
import { SCUserAutocompleteType } from '@selfcommunity/types'; /** :::info This custom hook is used to fetch users. :::tip Context can be consumed in this way: ```jsx const {users, isLoading} = useSCFetchUsers(); ``` ::: * @param props */ declare const useSCFetchUsers: (props?: { search: string; exclude?: string; }) => { users: SCUserAutocompleteType[]; isLoading: boolean; }; export default useSCFetchUsers;