MCPcopy Create free account
hub / github.com/coordinape/coordinape / ErrorFrameImage

Function ErrorFrameImage

api-lib/frames/ErrorFrame.tsx:20–48  ·  view source on GitHub ↗
(params: Record<string, string>)

Source from the content-addressed store, hash-verified

18import { TRY_GIVEBOT_INTENT } from './routingUrls.ts';
19
20export const ErrorFrameImage = async (params: Record<string, string>) => {
21 const { viewerProfile } = await getViewerFromParams(params);
22 const { error_message } = params;
23
24 return (
25 <FrameWrapper>
26 <FrameBgImage src="error.jpg" />
27 <FrameBody>
28 <FrameBodyGradient
29 gradientStyles={{
30 background:
31 'radial-gradient(circle at 25% 0%, #12FAA6 0%, #E71392 80%)',
32 opacity: 0.7,
33 }}
34 />
35 <FrameHeadline>
36 <OGAvatar avatar={viewerProfile?.avatar} />
37 <div tw="flex items-center grow justify-center">Error</div>
38 <img
39 alt="gem"
40 src={IMAGE_URL_BASE + 'GemWhite.png'}
41 style={{ width: 80, height: 80 }}
42 />
43 </FrameHeadline>
44 <FrameFooter>{error_message && `${error_message}`}</FrameFooter>
45 </FrameBody>
46 </FrameWrapper>
47 );
48};
49
50export const ErrorFrame = (message?: string): Frame => ({
51 id: 'error_frame',

Callers 3

givePartyImageNodeFunction · 0.90
ImageNodeFunction · 0.90
givePartyImageNodeFunction · 0.90

Calls 1

getViewerFromParamsFunction · 0.90

Tested by

no test coverage detected