update pay function

This commit is contained in:
2025-11-22 08:57:37 +08:00
parent 295f179147
commit 43446f8034
210 changed files with 8236 additions and 5345 deletions

View File

@@ -0,0 +1,18 @@
import { useState } from "react";
import { default as NextImage, ImageProps } from "next/image";
const Image = ({ className, ...props }: ImageProps) => {
const [loaded, setLoaded] = useState(false);
return (
<NextImage
className={`inline-block align-top opacity-0 transition-opacity ${
loaded && "opacity-100"
} ${className || ""}`}
onLoad={() => setLoaded(true)}
{...props}
/>
);
};
export default Image;