/** * MeetingNotesWidget - Quick Meeting Notes */ import React, { useState } from 'react'; import { FileText, Save, Mic } from 'lucide-react'; import { useWidgetCommunication } from '@/contexts/WidgetContext'; export default function MeetingNotesWidget({ widgetId }: { widgetId: string }) { const [notes, setNotes] = useState(''); const [currentMeeting, setCurrentMeeting] = useState(null); const { subscribeToEvent, broadcastEvent } = useWidgetCommunication(widgetId); React.useEffect(() => { const unsub = subscribeToEvent('calendar.meeting.joined', (event) => { setCurrentMeeting(event.data.title); }); return () => unsub(); }, []); const handleSave = () => { broadcastEvent({ type: 'notes.saved', data: { meeting: currentMeeting, notes }, }); // TODO: Save to Notion/Google Docs }; return (
Meeting Notes
{currentMeeting && (
📝 {currentMeeting}
)}