index.tsx 812 B

123456789101112131415161718192021222324
  1. 'use client'
  2. import type { FC } from 'react'
  3. import React from 'react'
  4. import { useTranslation } from 'react-i18next'
  5. import s from './style.module.css'
  6. import Button from '@/app/components/base/button'
  7. export type IContrlBtnGroupProps = {
  8. onSave: () => void
  9. onReset: () => void
  10. }
  11. const ContrlBtnGroup: FC<IContrlBtnGroupProps> = ({ onSave, onReset }) => {
  12. const { t } = useTranslation()
  13. return (
  14. <div className="fixed left-[224px] bottom-0 w-[519px] h-[64px]">
  15. <div className={`${s.ctrlBtn} flex items-center h-full pl-4 gap-2 bg-white`}>
  16. <Button variant='primary' onClick={onSave}>{t('appDebug.operation.applyConfig')}</Button>
  17. <Button onClick={onReset}>{t('appDebug.operation.resetConfig')}</Button>
  18. </div>
  19. </div>
  20. )
  21. }
  22. export default React.memo(ContrlBtnGroup)