AdminUpdateButtonRow.tsx 529 B

12345678910111213141516171819202122
  1. import React from 'react';
  2. import { useTranslation } from 'next-i18next';
  3. type Props = {
  4. onClick: () => void,
  5. disabled?: boolean,
  6. }
  7. const AdminUpdateButtonRow = (props: Props): JSX.Element => {
  8. const { t } = useTranslation('admin');
  9. return (
  10. <div className="row my-3">
  11. <div className="mx-auto">
  12. <button type="button" className="btn btn-primary" onClick={props.onClick} disabled={props.disabled ?? false}>{ t('Update') }</button>
  13. </div>
  14. </div>
  15. );
  16. };
  17. export default AdminUpdateButtonRow;