import { useCollection, useIdentity, exportCSV, exportJSON, useAILookup } from '@deplixo/sdk'; import Dashboard from './components/Dashboard.jsx'; import Companies from './components/Companies.jsx'; import Insights from './components/Insights.jsx'; import Reports from './components/Reports.jsx'; const TABS = [ { id: 'dashboard', label: 'Dashboard' }, { id: 'companies', label: 'Imprese' }, { id: 'insights', label: 'Insight AI' }, { id: 'reports', label: 'Report' }, ]; function App() { const { user } = useIdentity(); const { items: allCompanies, add, update, remove } = useCollection('lumen-companies'); const [tab, setTab] = useState('dashboard'); // Per-user private portfolio const companies = (allCompanies || []).filter( (c) => c.author?.id === user?.id ); return (
lumen
dati imprese → informazioni
{user && (
{user.name}
)}
{tab === 'dashboard' && } {tab === 'companies' && ( )} {tab === 'insights' && } {tab === 'reports' && }
); } ReactDOM.createRoot(document.getElementById('root')).render();