import{jsxs as a,Fragment as p,jsx as e}from"react/jsx-runtime";import{I as d,Z as m,H as h,K as u,e as g,M as I,N as f}from"./ui-components-B24mpb8o.js";import{u as D}from"./use-lang-Cw_jKJYs.js";import{useState as x}from"react";import{I as k}from"./icon-picker-DlQKexqz.js";const S=({onSelect:n,value:s,name:o,placeholder:i})=>{const[l,r]=x(!1),{dashboard:t}=D();return a(p,{children:[e(d,{required:!0,readOnly:!0,type:"text",name:o,value:s,placeholder:i||o,onClick:()=>r(!0)}),e(m,{delayDuration:0,children:e(h,{open:l,onOpenChange:r,children:e(u,{className:"p-0",children:a(g,{className:"max-h-[90vh] p-6",children:[e(I,{className:"mb-6",children:e(f,{children:t.icon_picker})}),e(k,{onSelect:c=>{n(c),r(!1)}})]})})})})]})};export{S as I};
