'use client' import type { FC } from 'react' import React from 'react' import Link from 'next/link' import { useTranslation } from 'react-i18next' import { RiArrowRightUpLine } from '@remixicon/react' import cn from '@/utils/classnames' import AppIcon from '@/app/components/base/app-icon' import type { RelatedApp } from '@/models/datasets' type ILikedItemProps = { appStatus?: boolean detail: RelatedApp isMobile: boolean } const appTypeMap = { 'chat': 'Chatbot', 'completion': 'Completion', 'agent-chat': 'Agent', 'advanced-chat': 'Chatflow', 'workflow': 'Workflow', } const LikedItem = ({ detail, isMobile, }: ILikedItemProps) => { return (