Files
pos/public/build/assets/app-Rvu1HfuK.js
2026-03-06 03:26:11 +07:00

2 lines
536 B
JavaScript

import{R as o,j as e,c as s}from"./client-Cv0X-2PX.js";function c(){const[a,n]=o.useState("");return e.jsxs("div",{style:{padding:16,fontFamily:"system-ui, Arial"},children:[e.jsx("h2",{children:"POS React Jalan ✅"}),e.jsx("input",{autoFocus:!0,value:a,onChange:t=>n(t.target.value),onKeyDown:t=>{t.key==="Enter"&&(alert("Barcode ke-scan: "+a),n(""))},placeholder:"Scan barcode lalu Enter",style:{padding:10,width:320}})]})}const r=document.getElementById("app");r&&s.createRoot(r).render(e.jsx(o.StrictMode,{children:e.jsx(c,{})}));