text: (this["webpackJsonptheme-switcher"]=this["webpackJsonptheme-switcher"]||[]).push([[0],{14:function(e,t,n){e.exports=n(24)},24:function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),c=n(6),o=n.n(c),i=n(3),u=n(1);var l=function(e,t){var n=Object(r.useState)((function(){var n=localStorage.getItem(e);return n?JSON.parse(n):t})),a=Object(i.a)(n,2),c=a[0],o=a[1];return Object(r.useEffect)((function(){localStorage.setItem(e,JSON.stringify(c))}),[e,c]),[c,o]},s={title:"light",colors:{primary:"#C62e65",secundary:"#D63AF9",background:"#f5f5f5",text:"#333"}},f={title:"dark",colors:{primary:"#C62e65",secundary:"#D63AF9",background:"#222",text:"#FFF"}},m=n(2);function d(){var e=Object(m.a)(["\n  * {\n    margin: 0;\n    padding: 0;\n    box-sizing: border-box;\n  }\n  body {\n    background: ",";\n    font-size: 18px;\n    color: ",";\n    font-family: sans-serif;\n    font-style: antialiased;\n  }\n"]);return d=function(){return e},e}var h=Object(u.c)(d(),(function(e){return e.theme.colors.background}),(function(e){return e.theme.colors.text})),g=n(11),b=n.n(g),p=n(12);function y(){var e=Object(m.a)(["\n  height: 60px;\n  background: ",";\n  color: #FFF;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  padding: 0 30px;\n"]);return y=function(){return e},e}var k=u.d.div(y(),(function(e){return e.theme.colors.primary})),v=function(e){var t=e.toggleTheme,n=Object(r.useContext)(u.a),c=n.colors,o=n.title;return a.a.createElement(k,null,"Theme-Switcher",a.a.createElement(b.a,{onChange:t,checked:"dark"===o,checkedIcon:!1,uncheckedIcon:!1,height:10,width:40,handleDiameter:20,offColor:Object(p.a)(.2,c.primary),onColor:c.secundary}))},x=function(){var e=l("theme",s),t=Object(i.a)(e,2),n=t[0],r=t[1];return a.a.createElement(u.b,{theme:n},a.a.createElement("div",{className:"App"},a.a.createElement(h,null),a.a.createElement(v,{toggleTheme:function(){r("light"===n.title?f:s)}})))};o.a.render(a.a.createElement(x,null),document.getElementById("root"))}},[[14,1,2]]]);
  //# sourceMappingURL=main.a8546760.chunk.js.map