import { useRef } from 'react'; import { Link } from 'react-router-dom'; import LinksDialog from '../components/LinksDialog.jsx'; import Tracking from '../components/Tracking.jsx'; import { LINK_SERVICES, useLinks } from '../links.jsx'; const svg = { fill: 'none', stroke: 'currentColor', strokeWidth: 1.8, strokeLinecap: 'round', strokeLinejoin: 'round', viewBox: '0 0 24 24', }; const ICONS = { jellyfin: , audiobookshelf: , homer: , projekte: , haushalt: , reisen: , kanban: , monitoring: , }; export default function Home() { const { links } = useLinks(); const dialog = useRef(null); const editLinks = () => dialog.current.showModal(); return ( <>

Schnellzugriff

{LINK_SERVICES.map(({ key, name, description }) => links[key] ? ( {ICONS[key]} {name} {description} ) : ( // Ohne Link öffnet die Kachel direkt den Bearbeiten-Dialog ), )} {ICONS.projekte} P42 Projekte Übersicht aller Projekte {ICONS.haushalt} Vorrat & Einkauf Gemeinsame Einkaufsliste {ICONS.reisen} Reisen Meine Weltkarte {ICONS.kanban} Kanban Gemeinsame Aufgaben {ICONS.monitoring} Server-Monitoring Status meiner Server
); }