"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),s=require("react/jsx-runtime"),i=require("react"),l=require("../../Menu/Menu.js"),r=require("../../Text/Text.js"),t=require("../../Chip/Chip.js"),a=require("../PublishModal/PublishModal.js"),u=require("./TemplateMenuItems.scss.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e);exports.PublishTemplate=function(e){var n=e.template,c=i.useState(!1),d=o.default(c,2),p=d[0],h=d[1],m=i.useCallback((function(){return h((function(e){return!e}))}),[]);return s.jsxs(s.Fragment,{children:[s.jsx(l.Menu.Item,{size:"large",onClick:m,children:s.jsxs("div",{className:u.publish,children:["Publish as Company Default",s.jsx(r.Text,{size:12,color:"T6",tagName:"div",className:u.publishAdditional,children:"A Copy of this template will be saved. This template will be saved as the default for all employees in your company."}),s.jsx(t.Chip,{shape:"square",state:"info",size:"small",className:u.adminChip,children:"Admin"})]})}),s.jsx(a.PublishModal,{open:p,onClose:m,template:n})]})};
//# sourceMappingURL=PublishTemplate.js.map
