UNPKG

@promptbook/vercel

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

39 lines (38 loc) 1.18 kB
import type { AgentBasicInformation } from '../../../book-2.0/agent-source/AgentBasicInformation'; import type { string_css_class } from '../../../types/typeAliases'; /** * Props of `AvatarChip` * * @public exported from `@promptbook/components` */ export type AvatarChipProps = { /** * Avatar to be shown */ readonly avatarBasicInformation: Omit<AgentBasicInformation, 'parameters'>; /** * Whether this chip is a template avatar */ readonly isTemplate: boolean; /** * Optional CSS class name which will be added to root <div> element */ readonly className?: string_css_class; /** * Called when chip is clicked */ readonly onSelect?: (avatar: Omit<AgentBasicInformation, 'parameters'>) => void; /** * Whether this chip is selected */ readonly isSelected?: boolean; }; /** * Shows a chip with avatar's avatar and name * * @public exported from `@promptbook/components` */ export declare function AvatarChip(props: AvatarChipProps): import("react/jsx-runtime").JSX.Element; /** * TODO: [☁️] Export component prop types only to `@promptbook/components` (not `@promptbook/types`) */