wwf
2025-05-20 938c3e5a587ce950a94964ea509b9e7f8834dfae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
'use client'
import type { FC } from 'react'
import React from 'react'
import { useTranslation } from 'react-i18next'
import {
  RiAddLine,
  RiBookmark3Line,
} from '@remixicon/react'
import Button from '@/app/components/base/button'
export type INoDataProps = {
  onStartCreateContent: () => void
}
 
const NoData: FC<INoDataProps> = ({
  onStartCreateContent,
}) => {
  const { t } = useTranslation()
 
  return (
    <div className='rounded-xl bg-background-section-burn p-6 '>
      <div className='flex h-10 w-10 items-center justify-center rounded-[10px] border-[0.5px] border-components-card-border bg-components-card-bg-alt shadow-lg backdrop-blur-sm'>
        <RiBookmark3Line className='h-4 w-4 text-text-accent'/>
      </div>
      <div className='mt-3'>
        <span className='system-xl-semibold text-text-secondary'>{t('share.generation.savedNoData.title')}</span>
      </div>
      <div className='system-sm-regular mt-1 text-text-tertiary'>
        {t('share.generation.savedNoData.description')}
      </div>
      <Button
        variant='primary'
        className='mt-3'
        onClick={onStartCreateContent}
      >
        <RiAddLine className='mr-1 h-4 w-4' />
        <span>{t('share.generation.savedNoData.startCreateContent')}</span>
      </Button>
    </div>
  )
}
 
export default React.memo(NoData)