<template>
  <div class="rendered-map" :style="component.style">
    <iframe
      :src="component.props.src || 'https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2001.3547844111358!2d-0.12760888636495267!3d51.50735098939634!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x47d91ba81881729f%3A0x6717a6a75f8f533!2sBig%20Ben!5e0!3m2!1sen!2suk!4v1678234567890!5m2!1sen!2suk'"
      width="100%"
      height="100%"
      frameborder="0"
      style="border:0;"
      allowfullscreen=""
      loading="lazy"
      referrerpolicy="no-referrer-when-downgrade"
    ></iframe>
  </div>
</template>

<script setup>
import { defineProps } from 'vue';

const props = defineProps({
  component: Object,
});
</script>

<style scoped>
.rendered-map {
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-sizing: border-box;
}
</style>