🤯 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
// Fixture: one primary commit action, a filled secondary, a text utility.
import { Flexbox } from '@lobehub/ui';
import { Button } from '@lobehub/ui';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
interface CreateFooterProps {
loading: boolean;
onCancel: () => void;
onCreate: () => void;
onPreview: () => void;
}
const CreateFooter = memo<CreateFooterProps>(({ loading, onCancel, onCreate, onPreview }) => {
const { t } = useTranslation('common');
return (
<Flexbox horizontal gap={8} justify={'flex-end'}>
<Button type={'text'} onClick={onPreview}>
{t('preview')}
</Button>
<Button type={'fill'} onClick={onCancel}>
{t('cancel')}
</Button>
<Button loading={loading} type={'primary'} onClick={onCreate}>
{t('create')}
</Button>
</Flexbox>
);
});
export default CreateFooter;