{
const path = getDevicePath();
updateDeviceSetting([...path, 'name'], e.target.value);
}}
className="w-full px-3 py-2 border border-neutral-300 rounded-lg"
/>
{device.type.charAt(0).toUpperCase() + device.type.slice(1)}
{deviceData.url !== undefined && (
{
const path = getDevicePath();
updateDeviceSetting([...path, 'url'], e.target.value);
}}
className="flex-1 px-3 py-2 border border-neutral-300 rounded-lg"
/>
{mediaSet && (
{mediaSet.files.slice(0, 5).map((file, index) => (
))}
)}
)}
{deviceData.mode !== undefined && (
{
const path = getDevicePath();
updateDeviceSetting([...path, 'mode'], parseInt(e.target.value));
}}
className="w-full px-3 py-2 border border-neutral-300 rounded-lg"
/>
)}
{deviceData.type && (
{deviceData.type}
)}
{deviceData.baud !== undefined && (
{
const path = getDevicePath();
updateDeviceSetting([...path, 'baud'], parseInt(e.target.value));
}}
className="w-full px-3 py-2 border border-neutral-300 rounded-lg"
/>
)}