"use client"; import { useState } from "react"; function Toggle({ label, helper, enabled, onChange, }: { label: string; helper: string; enabled: boolean; onChange: (next: boolean) => void; }) { return ( ); } export default function SettingsPage() { const [emailEnabled, setEmailEnabled] = useState(true); const [smsEnabled, setSmsEnabled] = useState(false); const [webhookEnabled, setWebhookEnabled] = useState(true); return (

Settings

Configure alerts, shifts, and integrations.

Organization
Plant Name
MIS Plant
Time Zone
America/Mexico_City
Alert Thresholds
Applies to all machines
{[ { label: "OEE Alert", value: "85%", helper: "Trigger when OEE drops below this" }, { label: "Availability Alert", value: "85%", helper: "Low run time detection" }, { label: "Performance Alert", value: "85%", helper: "Slow cycle detection" }, { label: "Quality Alert", value: "95%", helper: "Scrap spike detection" }, { label: "Microstop (sec)", value: "60s", helper: "Stop longer than this" }, { label: "Macrostop (sec)", value: "300s", helper: "Major stop threshold" }, ].map((row) => (
{row.label}
{row.value}
{row.helper}
))}
Shift Schedule
Used for Availability calculations
{[ { label: "Shift A", time: "06:00 - 14:00", days: "Mon - Fri" }, { label: "Shift B", time: "14:00 - 22:00", days: "Mon - Fri" }, { label: "Shift C", time: "22:00 - 06:00", days: "Mon - Fri" }, ].map((shift) => (
{shift.label}
{shift.time}
{shift.days}
))}
Notification Channels
Integrations
Live endpoints
Webhook URL
https://hooks.example.com/iiot
ERP Sync
Not configured
Users & Roles
{[ { name: "Juan Perez", role: "Plant Manager" }, { name: "Sandra Rivera", role: "Supervisor" }, { name: "Maintenance", role: "Technician" }, ].map((user) => (
{user.name}
{user.role}
))}
); }