"use strict";(self.webpackChunkneve=self.webpackChunkneve||[]).push([[403],{403:function(e,n,t){t.r(n);var c=t(307),o=t(609),s=t(736),a=t(697),i=t.n(a);const r=({onIconChoice:e,setVisible:n,icons:t})=>{const[a,i]=(0,c.useState)(""),r=(l=(()=>{const e={};for(const[n,c]of Object.entries(t))n.indexOf(a)>-1&&(e[n]=c);return e})(),Object.entries(l).map((([t,s])=>(0,c.createElement)(o.Tooltip,{className:"tooltip",text:t,key:t},(0,c.createElement)(o.Button,{className:"icon-button",onClick:()=>{e(t),n(!1),i("")}},s)))));var l;return(0,c.createElement)("div",{className:"icons-popover-content"},(0,c.createElement)(o.TextControl,{placeholder:(0,s.__)("Search","neve"),value:a,type:"search",onChange:i,className:"icons-popover-header"}),(0,c.createElement)("div",{className:"icons-container"},r))};r.propTypes={onIconChoice:i().func.isRequired,setVisible:i().func.isRequired,icons:i().object.isRequired},n.default=r}}]);