UNPKG

@selfcommunity/react-core

Version:

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

19 lines (18 loc) 591 B
/// <reference types="react" /> import { SCUserProviderAssociationType } from '@selfcommunity/types'; /** :::info This custom hook is used to fetch the list of user providers. ::: * @param object * @param object.id * @param object.providers */ export default function useSCFetchUserProviders({ id, providers }: { id: number | string; providers?: SCUserProviderAssociationType[]; }): { scUserProviders: SCUserProviderAssociationType[]; setSCUserProviders: import("react").Dispatch<import("react").SetStateAction<SCUserProviderAssociationType[]>>; error: string; };