/* Copyright 2026 Marimo. All rights reserved. */ import { atom } from "jotai"; import type { PanelType } from "./context-aware-panel"; /** * Unique ID of the owner rendering the context-aware panel. */ export const contextAwarePanelOwner = atom(null); export const contextAwarePanelType = atom(null); /** * If true, the panel is open. */ export const contextAwarePanelOpen = atom(false); /** * If true, the panel is treated as part of the editor. * When false, the panel overlays the editor content. */ export const isPinnedAtom = atom(false); /** * If true, the panel is cell-aware and will switch content based on the focused cell. * Else, user needs to manually trigger content switch. */ export const isCellAwareAtom = atom(false);