import { Image } from '@/components' import { getBackgroundImage, getStaticImage } from '@/lib/utils' import { motion } from 'framer-motion' import type { ReactNode } from 'react' type UnlockHintDialogProps = { title?: string starName: string visible: boolean onClose: () => void onShare?: () => void children?: ReactNode } const UnlockHintDialog = ({ title, starName, visible, onClose, onShare, children, }: UnlockHintDialogProps) => { return ( {visible && (
关闭 {title && (
{title}
)}
{children}
{onShare && (
分享
)}
)}
) } export default UnlockHintDialog