MCPcopy Create free account
hub / github.com/dailydotdev/apps / isAnimatedImage

Function isAnimatedImage

packages/shared/src/features/patchy/patchyConfig.ts:299–300  ·  view source on GitHub ↗
(image: string | undefined)

Source from the content-addressed store, hash-verified

297// config that points a face back at a still image gets the circle's motion
298// and blinks again. Animated assets are named `patchy-v1-face-anim-*`.
299const isAnimatedImage = (image: string | undefined): boolean =>
300 !!image?.includes('-anim-');
301
302export const isPatchyFaceAnimated = (face: PatchyFace): boolean =>
303 isAnimatedImage(getPatchyConfig().faceImage[face]);

Callers 1

isPatchyFaceAnimatedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected