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