Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

585 B
Raw Blame
'use client';

import { createContext, useContext } from 'react';

/**
 * Common placement values supported by both Dropdown and Popover
 */
type DropdownPlacement = 'bottom' | 'bottomLeft' | 'bottomRight' | 'top' | 'topLeft' | 'topRight';

export interface ActionBarContextValue {
  actionSize?: { blockSize: number; size: number };
  borderRadius?: number;
  dropdownPlacement?: DropdownPlacement;
}

export const ActionBarContext = createContext<ActionBarContextValue>({});

export const useActionBarContext = () => useContext(ActionBarContext);

export type { DropdownPlacement };