@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
15 lines (14 loc) • 686 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PopupCloseButton = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const common_1 = require("@workday/canvas-kit-react/common");
const button_1 = require("@workday/canvas-kit-react/button");
const hooks_1 = require("./hooks");
exports.PopupCloseButton = (0, common_1.createSubcomponent)(button_1.SecondaryButton)({
displayName: 'Popup.CloseButton',
modelHook: hooks_1.usePopupModel,
elemPropsHook: hooks_1.usePopupCloseButton,
})(({ children, ...elemProps }, Element) => {
return ((0, jsx_runtime_1.jsx)(Element, { type: "button", ...elemProps, children: children }));
});