Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
() =>
data
? encode(
data.imageData.data,
data.imageData.width,
data.imageData.height,
componentX,
componentY,
)
: undefined,
[data, componentX, componentY],
const blurhashValid = useMemo(() => isBlurhashValid(hash), [hash]);