@promptbook/remote-server
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
20 lines (19 loc) • 604 B
TypeScript
/**
* Props for `<CodeBlock/>`.
*
* @private Internal utility of `<ChatMessage />` component
*/
type CodeBlockProps = {
code: string;
language?: string;
className?: string;
onCreateAgent?: (bookContent: string) => void;
theme?: 'LIGHT' | 'DARK';
};
/**
* Component to render a code block with syntax highlighting, copy, download, and create agent options.
*
* @private Internal utility of `<ChatMessage />` component
*/
export declare function CodeBlock({ code, language, className, onCreateAgent, theme }: CodeBlockProps): import("react/jsx-runtime").JSX.Element;
export {};