Files
front-AT/app/(private)/Monitor/page.tsx
T

49 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-01-23 19:34:03 -06:00
import Toggle from "@/app/Components/Global/Toggle/Toggle";
2026-01-22 12:25:07 -06:00
import MachineTable from "./MachineTable";
2025-09-28 01:59:16 -06:00
import styles from "./Page.module.css";
2026-01-23 19:34:03 -06:00
import MachineTableActive from "./MachineTableActive";
import DSC from "./DSC";
2026-02-17 19:16:57 -06:00
import ToggleTable from "@/app/Components/Global/Toggle/ToggleTable";
2026-02-24 18:47:23 -06:00
import TableTable from "./TableTable";
2025-09-03 20:41:25 -04:00
2025-09-28 01:59:16 -06:00
export default async function Page(props: {
2026-01-23 19:34:03 -06:00
searchParams?: Promise<{ numAcount: string; key: string }>;
2025-09-28 01:59:16 -06:00
}) {
const params = await props.searchParams;
2026-01-22 12:25:07 -06:00
const numAcount = params?.numAcount ?? null;
const key = params?.key ?? "Equipos";
2025-09-03 20:41:25 -04:00
2025-09-02 19:50:17 -04:00
return (
2025-10-02 20:47:38 -06:00
<section className="containerSection">
2026-02-24 18:47:23 -06:00
<h2 className="title">MONITOR</h2>
2025-09-02 19:50:17 -04:00
2025-09-03 20:41:25 -04:00
<div className={styles.actions}>
2026-01-23 19:34:03 -06:00
<button className={styles.resetButton}>Actualizar información</button>
2025-09-03 20:41:25 -04:00
</div>
2026-02-17 19:16:57 -06:00
<ToggleTable
2026-01-23 19:34:03 -06:00
defaultView={key}
options={[
{
2026-02-24 18:47:23 -06:00
key: "Equipos",
label: "Equipos",
2026-01-23 19:34:03 -06:00
content: (
<>
<MachineTableActive />
</>
),
},
{
2026-02-24 18:47:23 -06:00
key: "Mesas",
label: "Mesas",
2026-01-23 19:34:03 -06:00
content: (
<>
2026-02-24 18:47:23 -06:00
<TableTable />
2026-01-23 19:34:03 -06:00
</>
),
},
]}
/>
2025-09-03 20:41:25 -04:00
</section>
2025-09-02 19:50:17 -04:00
);
}