import { View, Image } from "@tarojs/components"; import ThinkAnimation from "../think-animation/index"; import style from "./index.module.less"; interface Props { loading?: boolean; analyzeStatus?: "idle" | "doing" | "done"; content?: string; data?: { avatar: string; name: string; fileLen?: number; }; children?: JSX.Element | JSX.Element[]; } export default ({ data, loading, content = '', analyzeStatus = "idle", children, }: Props) => { return ( {data && } {data && data.name} {loading && } {analyzeStatus !== "idle" && ( {analyzeStatus === "doing" ? "正在为您解析" : content} {analyzeStatus === "doing" && ( )} )} {children} ); };