UNPKG

@azure/communication-react

Version:

React library for building modern communication user experiences utilizing Azure Communication Services

17 lines 780 B
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { getCallingSelector } from "../../../../../calling-component-bindings/src"; import { useAdaptedSelector } from './useAdaptedSelector'; import { useHandlers } from './useHandlers'; /** * @private */ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type export const usePropsFor = (component) => { const selector = getCallingSelector(component); if (!selector) { throw new Error("Can't find the selector for component, please check supported component list"); } return Object.assign(Object.assign({}, useAdaptedSelector(selector)), useHandlers(component)); }; //# sourceMappingURL=usePropsFor.js.map