import * as React from 'react' import {Card, Stack, Box, Label, Grid, Select} from '@sanity/ui' import {ListGraphQLApisResult} from './use-list-graphql-apis' import {parseUrl, buildUrl} from './url' type HeaderProps = { url: string | null onUrlChange: (url: string) => void apis: ListGraphQLApisResult } type APIInfo = { projectId: string dataset: string tag: string } const defaultVersion = 'v2023-08-01' const defaultPerspective = 'raw' // Convert the selected API to a string that can be set on a