'use client' import { useState } from 'react' import { Plus, X } from 'lucide-react' import { AufgabeFormular } from '@/components/aufgaben/aufgabe-formular' import { Button } from '@/components/ui/button' import { Card, CardInhalt, CardKopf, CardTitel } from '@/components/ui/card' type Eigenschaften = { bereiche: { id: string; name: string }[] projekte: { id: string; name: string }[] vorgabe?: { bereichId?: string; projektId?: string; typ?: string } beschriftung?: string } /** Klappt das vollständige Formular auf; im Normalfall genügt die Inbox. */ export function NeueAufgabe({ bereiche, projekte, vorgabe, beschriftung = 'Neue Aufgabe', }: Eigenschaften) { const [offen, setOffen] = useState(false) if (!offen) { return ( ) } return ( {beschriftung} setOffen(false)} /> ) }