mirror of
https://github.com/langgenius/dify.git
synced 2026-02-28 05:01:42 -05:00
Migrate all icon usage in the skill directory from @remixicon/react and custom SVG components to Tailwind CSS icon classes (i-ri-*, i-custom-*). Update MenuItem API to accept string class names instead of React.ElementType.
27 lines
774 B
TypeScript
27 lines
774 B
TypeScript
'use client'
|
|
|
|
import { memo } from 'react'
|
|
import { useTranslation } from 'react-i18next'
|
|
import ActionCard from './action-card'
|
|
|
|
const CreateImportSection = () => {
|
|
const { t } = useTranslation('workflow')
|
|
|
|
return (
|
|
<div className="grid grid-cols-3 gap-2 px-6 pb-4 pt-6">
|
|
<ActionCard
|
|
icon={<span className="i-ri-add-circle-fill size-5 text-text-accent" />}
|
|
title={t('skill.startTab.createBlankSkill')}
|
|
description={t('skill.startTab.createBlankSkillDesc')}
|
|
/>
|
|
<ActionCard
|
|
icon={<span className="i-ri-upload-line size-5 text-text-accent" />}
|
|
title={t('skill.startTab.importSkill')}
|
|
description={t('skill.startTab.importSkillDesc')}
|
|
/>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default memo(CreateImportSection)
|