feat: unify creation entry templates
This commit is contained in:
@@ -26,6 +26,7 @@ type SquareHoleAgentWorkspaceProps = {
|
||||
onBack: () => void;
|
||||
onSubmitMessage: (payload: SendSquareHoleMessageRequest) => void;
|
||||
onExecuteAction: (payload: ExecuteSquareHoleActionRequest) => void;
|
||||
showBackButton?: boolean;
|
||||
};
|
||||
|
||||
const SQUARE_HOLE_AGENT_THEME: CreationAgentTheme = {
|
||||
@@ -108,6 +109,7 @@ export function SquareHoleAgentWorkspace({
|
||||
onBack,
|
||||
onSubmitMessage,
|
||||
onExecuteAction,
|
||||
showBackButton = true,
|
||||
}: SquareHoleAgentWorkspaceProps) {
|
||||
return (
|
||||
<CreationAgentWorkspace
|
||||
@@ -121,6 +123,7 @@ export function SquareHoleAgentWorkspace({
|
||||
isBusy={isBusy}
|
||||
error={error}
|
||||
quickActions={SQUARE_HOLE_QUICK_ACTIONS}
|
||||
showBackButton={showBackButton}
|
||||
onBack={onBack}
|
||||
onSubmitText={(text) => {
|
||||
onSubmitMessage(buildSquareHoleChatPayload({ text }));
|
||||
|
||||
Reference in New Issue
Block a user