ragflow/web/src/pages/next-chats/chat/app-settings/saving-button.tsx
balibabu c7f7adf029
Feat: Extract the save buttons for dataset and chat configurations to separate files to increase permission control #3221 (#9803)
### What problem does this PR solve?

Feat: Extract the save buttons for dataset and chat configurations to
separate files to increase permission control #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
2025-08-29 10:40:41 +08:00

16 lines
366 B
TypeScript

import { ButtonLoading } from '@/components/ui/button';
import { useTranslation } from 'react-i18next';
type SaveButtonProps = {
loading: boolean;
};
export function SavingButton({ loading }: SaveButtonProps) {
const { t } = useTranslation();
return (
<ButtonLoading type="submit" loading={loading}>
{t('common.save')}
</ButtonLoading>
);
}