🤯 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.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import type { IconProps } from '@lobehub/ui';
import type { ReactNode } from 'react';
export interface BusinessSendErrorAlert {
/** Button shown beside the notice, such as an upgrade entry. */
action?: ReactNode;
/** Replaces the line under the title, so it names only the actions offered. */
description?: string;
/** Replaces the notice icon, e.g. an hourglass for a limit that resets. */
icon?: IconProps['icon'];
/** Replaces the default notice text. */
title?: string;
}
/**
* Lets a deployment enrich the composer notice for a refused send, keyed by the
* error type the server returned as the message. `onClose` dismisses the notice,
* for an action that already resolved the refusal.
*/
export const useBusinessSendErrorAlert = (
_errorMessage?: string,
_onClose?: () => void,
): BusinessSendErrorAlert => ({});