You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
467 B

4 years ago
  1. <script lang="ts">
  2. import Icon from "fa-svelte"
  3. import icons from "../external/icons";
  4. import type { IconName } from "../external/icons";
  5. export let name: IconName = "question";
  6. export let block: boolean = false;
  7. </script>
  8. {#if block}
  9. <div>
  10. <Icon class="activity-icon" icon={icons[name] || icons.question} />
  11. </div>
  12. {:else}
  13. <Icon class="activity-icon" icon={icons[name] || icons.question} />
  14. {/if}
  15. <style>
  16. div {
  17. margin: auto;
  18. }
  19. </style>