import { useState } from 'react';import { Button, Input, Label, Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "/components/ui";const PracticeManagementApp = () => { const [practices, setPractices] = useState([]); const [newPractice, setNewPractice] = useState({ clientName: '', clientEmail: '', password: '', status: 'pre-giudiziale' }); const generatePassword = () => { const password = Math.random().toString(36).slice(2, 12); setNewPractice({ ...newPractice, password }); }; const addPractice = () => { setPractices([...practices, newPractice]); setNewPractice({ clientName: '', clientEmail: '', password: '', status: 'pre-giudiziale' }); }; const updatePracticeStatus = (index, status) => { const updatedPractices = [...practices]; updatedPractices[index].status = status; setPractices(updatedPractices); }; return (
Nome Cliente: {practice.clientName}
Email Cliente: {practice.clientEmail}
Password: {practice.password}
Stato Pratica: {practice.status}