import{jsx as e,jsxs as i}from"react/jsx-runtime";import{B as r}from"./button-BvFBRYHq.js";import{I as s}from"./input-qMvM9qch.js";import{L as c}from"./label-DMnntKPk.js";import{D as d,a as p,b as h,c as f,d as g,e as u}from"./dialog-BfGkTFdF.js";import"@radix-ui/react-slot";import"class-variance-authority";import"./utils-CMbmcP35.js";import"clsx";import"tailwind-merge";import"@radix-ui/react-label";import"@radix-ui/react-dialog";import"lucide-react";function w({open:t,onOpenChange:a,rareItemPath:o,onRareItemPathChange:l,onSave:n}){return e(d,{open:t,onOpenChange:a,children:i(p,{className:"sm:max-w-[600px]",children:[i(h,{children:[e(f,{children:"Settings"}),e(g,{children:"Configure the path to rare_item.conf file"})]}),e("div",{className:"space-y-4 py-4",children:i("div",{className:"space-y-2",children:[e(c,{htmlFor:"rareItemPath",children:"Rare Item Config Path"}),e(s,{id:"rareItemPath",value:o,onChange:m=>l(m.target.value),placeholder:"/home/gamed/config/rare_item.conf",className:"font-mono"}),e("p",{className:"text-xs text-muted-foreground",children:"This path will be used for loading and saving rare_item.conf file"})]})}),i(u,{children:[e(r,{variant:"outline",onClick:()=>a(!1),children:"Cancel"}),e(r,{onClick:n,children:"Save Settings"})]})]})})}export{w as SettingsDialog};
