NewDatasetCard.tsx 1.0 KB

123456789101112131415161718192021222324252627282930
  1. 'use client'
  2. import { forwardRef } from 'react'
  3. import classNames from 'classnames'
  4. import { useTranslation } from 'react-i18next'
  5. import Link from 'next/link'
  6. import style from '../list.module.css'
  7. const CreateAppCard = forwardRef<HTMLAnchorElement>((_, ref) => {
  8. const { t } = useTranslation()
  9. return (
  10. <Link ref={ref} className={classNames(style.listItem, style.newItemCard)} href='/datasets/create'>
  11. <div className={style.listItemTitle}>
  12. <span className={style.newItemIcon}>
  13. <span className={classNames(style.newItemIconImage, style.newItemIconAdd)} />
  14. </span>
  15. <div className={classNames(style.listItemHeading, style.newItemCardHeading)}>
  16. {t('dataset.createDataset')}
  17. </div>
  18. </div>
  19. <div className={style.listItemDescription}>{t('dataset.createDatasetIntro')}</div>
  20. {/* <div className='text-xs text-gray-500'>{t('app.createFromConfigFile')}</div> */}
  21. </Link>
  22. )
  23. })
  24. CreateAppCard.displayName = 'CreateAppCard'
  25. export default CreateAppCard