cannot-query-dataset.tsx 937 B

12345678910111213141516171819202122232425262728293031
  1. 'use client'
  2. import type { FC } from 'react'
  3. import React from 'react'
  4. import { useTranslation } from 'react-i18next'
  5. import WarningMask from '.'
  6. import Button from '@/app/components/base/button'
  7. export type IFormattingChangedProps = {
  8. onConfirm: () => void
  9. }
  10. const FormattingChanged: FC<IFormattingChangedProps> = ({
  11. onConfirm,
  12. }) => {
  13. const { t } = useTranslation()
  14. return (
  15. <WarningMask
  16. title={t('appDebug.feature.dataSet.queryVariable.unableToQueryDataSet')}
  17. description={t('appDebug.feature.dataSet.queryVariable.unableToQueryDataSetTip')}
  18. footer={
  19. <div className='flex space-x-2'>
  20. <Button variant='primary' className='flex justify-start !w-[96px]' onClick={onConfirm}>
  21. <span className='text-[13px] font-medium'>{t('appDebug.feature.dataSet.queryVariable.ok')}</span>
  22. </Button>
  23. </div>
  24. }
  25. />
  26. )
  27. }
  28. export default React.memo(FormattingChanged)