UNPKG

carbon-react

Version:

A library of reusable React components for easily building user interfaces.

2 lines (1 loc) 1.23 kB
import{jsx as e}from"react/jsx-runtime";import t from"react";import r from"../utils/helpers/tags/tags.js";import n,{StyledHeaderContainer as o}from"./full-screen-heading.style.js";function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const s=t.forwardRef(((t,s)=>{const{children:i,hasContent:l,hasCloseButton:a}=t;return e(n,(f=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){c(e,t,r[t])}))}return e}({hasContent:l,hasCloseButton:a},r("full-screen-heading",t)),u=null!=(u={ref:s,children:e(o,{children:i})})?u:{},Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(u)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(u)).forEach((function(e){Object.defineProperty(f,e,Object.getOwnPropertyDescriptor(u,e))})),f));var f,u}));s.displayName="FullScreenHeading";export{s as default};