'use client' import type { FC } from 'react' import { cn } from '@langgenius/dify-ui/cn' import { CopyFeedback } from '@/app/components/base/copy-feedback' import useTheme from '@/hooks/use-theme' import { Theme } from '@/types/app' type Props = { readonly status: string readonly children?: React.ReactNode readonly copyContent?: string } const StatusContainer: FC = ({ status, children, copyContent }) => { const { theme } = useTheme() const isCopyable = copyContent !== undefined return (
{children} {isCopyable && (
)}
) } export default StatusContainer