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 (

Gestione Pratiche Legali

setNewPractice({ ...newPractice, clientName: e.target.value })} /> setNewPractice({ ...newPractice, clientEmail: e.target.value })} />

Password: {newPractice.password}

Pratiche Legali

);};export default PracticeManagementApp;