<turbo-stream action="update" target="modal"><template>  <div id="modal-overlay" class="fixed inset-0 z-50 bg-black bg-opacity-50 flex items-center justify-center" data-controller="modal">
    <div tabindex="-1" aria-hidden="true" class="overflow-y-auto overflow-x-hidden flex items-center justify-center fixed top-0 right-0 left-0 z-50 w-full md:inset-0 h-modal md:h-full">
      <div class="relative p-4 w-full max-w-xl h-full md:h-auto">
        <!-- Modal content -->
        <div class="relative px-10 py-10 bg-white rounded-md shadow">
          <!-- Modal header -->
          <div class="absolute top-2 right-2 rounded-t sm:mb-5">
            <button type="button" class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-md text-sm p-1.5 inline-flex" data-action="click->modal#close">
              <svg aria-hidden="true" class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path></svg>
              <span class="sr-only">Close modal</span>
            </button>
          </div>

          <div>
  <div class="mb-4">
    <h3 class="text-lg text-center font-medium text-gray-900 mb-2">Vous n'avez pas assez de crédits pour créer une nouvelle annonce</h3>
    <p class="text-center text-primary-400">Voulez-vous acheter des crédits ?</p>
  </div>

  <div class="grid grid-cols-2 gap-4">
    <a class="block rounded-md flex items-center justify-center py-2 px-4 text-gray-700 bg-gray-200 hover:bg-gray-300" data-action="click-&gt;modal#close" href="#">Annuler</a>
    <a class="block rounded-md flex items-center justify-center py-2 px-4 text-white bg-primary-400 hover:bg-primary-500 hover:text-white" href="/pricing">Voir les prix</a>
  </div>
</div>
        </div>
      </div>
    </div>
  </div>
</template></turbo-stream>