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

Function isAnimatedImage

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

Source from the content-addressed store, hash-verified

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

Callers 1

isPatchyFaceAnimatedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected