import {TertiaryButton} from '@workday/canvas-kit-react/button'; import {ExtractProps, createSubcomponent} from '@workday/canvas-kit-react/common'; import {mergeStyles} from '@workday/canvas-kit-react/layout'; import {createStencil} from '@workday/canvas-kit-styling'; import {xIcon} from '@workday/canvas-system-icons-web'; import {system} from '@workday/canvas-tokens-web'; import {usePopupCloseButton, usePopupModel} from './hooks'; export interface PopupCloseIconProps extends ExtractProps {} export const popupCloseIconStencil = createStencil({ base: { position: 'absolute', insetInlineEnd: system.legacy.padding.xs, top: system.legacy.padding.xs, }, }); export const PopupCloseIcon = createSubcomponent('button')({ displayName: 'Popup.CloseIcon', modelHook: usePopupModel, elemPropsHook: usePopupCloseButton, })(({children, ...elemProps}, Element) => { return ( ); });