{if isset($type['id']) && isset($data['videoId'])}
  <iframe
    class="tb-{$type['id']} w-full"
    src="https://www.youtube.com/embed/{$data['videoId']}"
    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; scripts; same-origin"
  ></iframe>
{/if}
