<script lang="ts">
    import { generalInfo, ccTags } from "../../../store"

    $: iframeTitle =
        $generalInfo?.person?.salutation +
        " " +
        $generalInfo?.person?.firstname +
        " " +
        $generalInfo?.person?.lastname +
        " - " +
        $generalInfo?.person?.additional
</script>

{#if $ccTags?.includes("googleMaps")}
    <iframe
        id="googleMaps"
        title="{iframeTitle}"
        src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d1342.4197187151062!2d10.4164909278422!3d50.56856037791808!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x2a509772539d6c1b!2sDr.%20med.%20Christine%20Wedekind!5e0!3m2!1sde!2sde!4v1652861335963!5m2!1sde!2sde"
        allowfullscreen
        loading="lazy"
        referrerpolicy="no-referrer-when-downgrade"></iframe>
{/if}
