page.tsx 553 B

1234567891011121314151617181920212223
  1. 'use client'
  2. import type { FC } from 'react'
  3. import { useTranslation } from 'react-i18next'
  4. import React, { useEffect } from 'react'
  5. import Tools from '@/app/components/tools'
  6. import { LOC } from '@/app/components/tools/types'
  7. const Layout: FC = () => {
  8. const { t } = useTranslation()
  9. useEffect(() => {
  10. document.title = `${t('tools.title')} - Dify`
  11. }, [])
  12. return (
  13. <div className='overflow-hidden' style={{
  14. height: 'calc(100vh - 56px)',
  15. }}>
  16. <Tools loc={LOC.tools} />
  17. </div>
  18. )
  19. }
  20. export default React.memo(Layout)