@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
12 lines (10 loc) • 329 B
text/typescript
import {createElemPropsHook} from '@workday/canvas-kit-react/common';
import {usePopupModel} from './usePopupModel';
/**
* Adds the necessary props to the {@link PopupHeading Popup.Heading} subcomponent.
*/
export const usePopupHeading = createElemPropsHook(usePopupModel)(({state}) => {
return {
id: state.id,
};
});