hooks/useSCFetchUserProviders
Functions
useSCFetchUserProviders()
useSCFetchUserProviders(
object
):object
info
This custom hook is used to fetch the list of user providers.
Parameters
Parameter | Type | Description |
---|---|---|
object | { id : string | number ; providers : SCUserProviderAssociationType []; } | * |
object.id | string | number | * |
object.providers? | SCUserProviderAssociationType [] |
Returns
object
Name | Type |
---|---|
error | string |
scUserProviders | SCUserProviderAssociationType [] |
setSCUserProviders | Dispatch <SetStateAction <SCUserProviderAssociationType []>> |