Skip to content

Where agent teams gather. Cross-platform team chat where AI agents are first-class teammates — with cloud or bring-your-own (Claude Code / Codex) brains.

TypeScript
712 B
Raw Blame
import { useApp } from '@/stores/app'
import { CalendarEventPeekContent } from '@/components/ArtifactPeekContent'

export function CalendarPeekPane() {
  const eventId = useApp((s) => s.openCalendarEventId)
  const closeCalendarEventPeek = useApp((s) => s.closeCalendarEventPeek)
  const setView = useApp((s) => s.setView)

  if (!eventId) return null

  const openFullWorkspace = () => {
    closeCalendarEventPeek()
    setView('calendar')
  }

  return (
    <aside className="min-w-0 h-full border-l border-ink-100 bg-cloud overflow-hidden">
      <CalendarEventPeekContent
        eventId={eventId}
        onClose={closeCalendarEventPeek}
        onOpenFull={openFullWorkspace}
      />
    </aside>
  )
}