'use client'; import React from 'react'; import { motion } from 'framer-motion'; import { Skeleton } from '@/components/ui/skeleton'; interface TaskInfoProps { isLoading: boolean; taskObject: any; currentLoadingText: string; } export function TaskInfo({ isLoading, taskObject, currentLoadingText }: TaskInfoProps) { if (isLoading) { return ( <> ); } return ( <>
{taskObject?.projectName}:{taskObject?.taskName}
{currentLoadingText === 'Task completed' ? ( {currentLoadingText} ) : ( {/* 背景发光效果 */} {currentLoadingText} {/* 主文字 - 颜色填充动画 */} {currentLoadingText} {/* 动态光点效果 */} {/* 文字底部装饰线 */} )} ); }