(params: Record<string, string>)
| 18 | import { TRY_GIVEBOT_INTENT } from './routingUrls.ts'; |
| 19 | |
| 20 | export 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 | |
| 50 | export const ErrorFrame = (message?: string): Frame => ({ |
| 51 | id: 'error_frame', |
no test coverage detected