import { createHook } from '@workday/canvas-kit-react/common' ; import { PopupModel } from '@workday/canvas-kit-react/popup' ; import { CSSProperties } from 'react' ; export const useDialogPopper = createHook ( ( { state } ) => { return { 'aria-owns' : `dialog-${ state . id }` , style : { position : 'absolute' } as CSSProperties , } ; } ) ;