dify/web/app/components/datasets/list/new-dataset-card/index.tsx
Stephen Zhou 6d0e36479b
refactor(i18n): use JSON with flattened key and namespace (#30114)
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-29 14:52:32 +08:00

42 lines
1.2 KiB
TypeScript

'use client'
import {
RiAddLine,
RiFunctionAddLine,
} from '@remixicon/react'
import * as React from 'react'
import { useTranslation } from 'react-i18next'
import { ApiConnectionMod } from '@/app/components/base/icons/src/vender/solid/development'
import Option from './option'
const CreateAppCard = () => {
const { t } = useTranslation()
return (
<div className="flex h-[190px] flex-col gap-y-0.5 rounded-xl bg-background-default-dimmed">
<div className="flex grow flex-col items-center justify-center p-2">
<Option
href="/datasets/create"
Icon={RiAddLine}
text={t('createDataset', { ns: 'dataset' })}
/>
<Option
href="/datasets/create-from-pipeline"
Icon={RiFunctionAddLine}
text={t('createFromPipeline', { ns: 'dataset' })}
/>
</div>
<div className="border-t-[0.5px] border-divider-subtle p-2">
<Option
href="/datasets/connect"
Icon={ApiConnectionMod}
text={t('connectDataset', { ns: 'dataset' })}
/>
</div>
</div>
)
}
CreateAppCard.displayName = 'CreateAppCard'
export default CreateAppCard