Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

632 B
Raw Blame
import { useGlobalNotificationSource } from '@components/app/GlobalAppState';
import { NotificationsDrawer } from '@core/component/NotificationsModal';
import type { ParentProps } from 'solid-js';
import { useMarkdownDocument } from '../context/markdown-document-context';

export function ModalsProvider(props: ParentProps) {
  const { documentId } = useMarkdownDocument();
  const notificationSource = useGlobalNotificationSource();

  return (
    <>
      {props.children}
      <NotificationsDrawer
        entity={{ id: documentId(), type: 'document' }}
        notificationSource={notificationSource}
      />
    </>
  );
}