### 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)
16 lines
366 B
TypeScript
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>
|
|
);
|
|
}
|