<script>
  import { _ } from "svelte-i18n";
  export let error;
</script>

<div class="text-white px-6 py-4 border-0 rounded relative mb-4 bg-red-500">
  <span class="inline-block align-middle mr-8">
    <b class="capitalize">{$_('general_promise_error')}</b>
    {error}
  </span>
</div>
