@shopify/shopify-app-remix
Version:
Shopify Remix - to simplify the building of Shopify Apps with Remix
1 lines • 841 B
Source Map (JSON)
{"version":3,"file":"RemixPolarisLink.mjs","sources":["../../../../../src/react/components/RemixPolarisLink.tsx"],"sourcesContent":["import React from 'react';\nimport {Link} from '@remix-run/react';\n// Polaris' LinkProps doesn't match this type, so we need to import it directly\nimport type {\n LinkLikeComponent,\n LinkLikeComponentProps,\n} from '@shopify/polaris/build/ts/src/utilities/link';\n\nexport const RemixPolarisLink = React.forwardRef<\n HTMLAnchorElement,\n LinkLikeComponentProps\n>((props, ref) => (\n <Link {...props} to={props.url ?? props.to} ref={ref} />\n)) as LinkLikeComponent;\n"],"names":["_jsx"],"mappings":";;;;AAQO,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAG9C,CAAC,KAAK,EAAE,GAAG,MACXA,GAAA,CAAC,IAAI,EAAA,EAAA,GAAK,KAAK,EAAE,EAAE,EAAE,KAAK,CAAC,GAAG,IAAI,KAAK,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAA,CAAI,CACzD;;;;"}