File size: 487 Bytes
cb5d9d0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import type { ClientData } from "../../types";

interface ClientPanelProps {
  cliente: ClientData;
  onNotify: () => void;
}

export default function ClientPanel({ cliente, onNotify }: ClientPanelProps) {
  return (
    <section className="viewer-panel">
      <h2>Panel de Control</h2>
      <p className="client-detail">ID del cliente: {cliente.client_id}</p>
      <button className="button" onClick={onNotify}>
        Notificar al sitio padre
      </button>
    </section>
  );
}