feat: upgrade rmcp (#3738)

This commit is contained in:
Andrew Harvard
2025-07-31 08:57:51 -04:00
committed by GitHub
parent 86871ad855
commit 001bcebcee
6 changed files with 392 additions and 281 deletions
+3 -15
View File
@@ -6,26 +6,14 @@ interface FlyingBirdProps {
cycleInterval?: number; // milliseconds between bird frame changes
}
const birdFrames = [
Bird1,
Bird2,
Bird3,
Bird4,
Bird5,
Bird6,
];
const birdFrames = [Bird1, Bird2, Bird3, Bird4, Bird5, Bird6];
export default function FlyingBird({
className = '',
cycleInterval = 150
}: FlyingBirdProps) {
export default function FlyingBird({ className = '', cycleInterval = 150 }: FlyingBirdProps) {
const [currentFrameIndex, setCurrentFrameIndex] = useState(0);
useEffect(() => {
const interval = setInterval(() => {
setCurrentFrameIndex((prevIndex) =>
(prevIndex + 1) % birdFrames.length
);
setCurrentFrameIndex((prevIndex) => (prevIndex + 1) % birdFrames.length);
}, cycleInterval);
return () => clearInterval(interval);