Skip to content

🤯 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.

519 B
Raw Blame
import type { BuiltinRenderProps } from '@lobechat/types';
import { memo } from 'react';

import type { UpdatePromptParams, UpdatePromptState } from '../../types';
import PromptDiffView from './components/PromptDiffView';

const UpdatePrompt = memo<BuiltinRenderProps<UpdatePromptParams, UpdatePromptState>>(
  ({ pluginState }) => {
    const { newPrompt, previousPrompt } = pluginState || {};

    return <PromptDiffView newPrompt={newPrompt} previousPrompt={previousPrompt} />;
  },
);

export default UpdatePrompt;