Download next.js/packages/third-parties/src/google/google-maps-embed.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 651 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/third-parties/src/google/google-maps-embed.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/third-parties/src/google/google-maps-embed.tsx
-
curl -L -o google-maps-embed.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/third-parties/src/google/google-maps-embed.tsx
651 Bytes
| import { GoogleMapsEmbed as TPCGoogleMapEmbed } from 'third-party-capital' | |
| import ThirdPartyScriptEmbed from '../ThirdPartyScriptEmbed' | |
| import type { GoogleMapsEmbed as GoogleMapsEmbedTypes } from '../types/google' | |
| export default function GoogleMapsEmbed(props: GoogleMapsEmbedTypes) { | |
| const { apiKey, ...restProps } = props | |
| const formattedProps = { ...restProps, key: apiKey } | |
| const { html } = TPCGoogleMapEmbed(formattedProps) | |
| return ( | |
| <ThirdPartyScriptEmbed | |
| height={formattedProps.height || null} | |
| width={formattedProps.width || null} | |
| html={html} | |
| dataNtpc="GoogleMapsEmbed" | |
| ></ThirdPartyScriptEmbed> | |
| ) | |
| } | |