import {LockIcon} from '@sanity/icons' import {Box, Text, TextInput, Tooltip} from '@sanity/ui' import {StringInputProps, useFormValue, SanityDocument, StringSchemaType} from 'sanity' import get from 'lodash.get' type Props = StringInputProps const ProxyString = (props: Props) => { const {schemaType} = props const path = schemaType?.options?.field const doc = useFormValue([]) as SanityDocument const proxyValue = path ? (get(doc, path) as string) : '' return ( This value is set in Shopify ({path}) } portal > ) } export default ProxyString