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

Function getResizedSrc

packages/shared/src/components/ProfilePicture.tsx:104–112  ·  view source on GitHub ↗
(src: string)

Source from the content-addressed store, hash-verified

102};
103
104const getResizedSrc = (src: string) => {
105 const provider = getSocialProviderFromSrc(src);
106 if (!provider) {
107 return src;
108 }
109
110 const getReplacedSrc = resizeSrcReplaceRule[provider];
111 return getReplacedSrc?.(src) ?? src;
112};
113
114function ProfilePictureComponent(
115 {

Callers 1

ProfilePictureComponentFunction · 0.85

Calls 1

getSocialProviderFromSrcFunction · 0.85

Tested by

no test coverage detected