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.

674 B
Raw Blame
import { type Accessor, createContext, useContext } from 'solid-js';

/** What the inline Calendar in the content area needs from the view. */
export type NotificationsCalendarPaneContext = {
  /** Bumped when the open event is chosen again, to re-aim at it in place. */
  refocus: Accessor<number>;
};

const Context = createContext<NotificationsCalendarPaneContext>();

export const NotificationsCalendarPaneProvider = Context.Provider;

export function useNotificationsCalendarPane(): NotificationsCalendarPaneContext {
  const context = useContext(Context);
  if (!context) {
    throw new Error('NotificationsCalendarPaneProvider is required');
  }
  return context;
}