@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
24 lines (23 loc) • 649 B
TypeScript
import { ReactNode } from 'react';
/**
* Props for dropdown.
*/
type DropdownProps = {
actions: Array<{
icon: ReactNode;
name: string;
onClick: () => void;
}>;
};
/**
* A dropdown menu component that displays a list of actions.
*
* The menu is toggled by a hamburger menu button. When an action is selected,
* the menu automatically closes.
*
* @param props - Contains an array of actions with icons, names, and click handlers
*
* @private internal subcomponent used by various components
*/
export declare function Dropdown({ actions }: DropdownProps): import("react/jsx-runtime").JSX.Element;
export {};