import { checkCircledIcon, chevronLeftIcon, chevronRightIcon, crossCircledIcon, externalLinkIcon, farcasterIcon, fileTextIcon, globeIcon, imageIcon, refreshIcon, stopwatchIcon, warpIcon, } from './icons.js' import { type Frame as FrameType } from './types.js' import { type State } from './utils.js' export type PreviewProps = { baseUrl: string contextHtml: string frame: FrameType request: | { type: 'initial' method: 'get' metrics: { htmlSize: number imageSize: number speed: number } response: { success: boolean status: number statusText: string } timestamp: number url: string } | { type: 'response' method: 'post' body: object metrics: { htmlSize: number imageSize: number speed: number } response: { success: boolean status: number statusText: string } timestamp: number url: string } | { type: 'redirect' method: 'post' body: object metrics: { speed: number } response: { success: boolean status: number statusText: string location: string } timestamp: number url: string } routes: readonly string[] state: State } export function Preview(props: PreviewProps) { const { baseUrl, contextHtml, frame, request, routes, state } = props return (
If you connect your wallet and the site is malicious, you may lose funds.