diff --git a/src/lib/components/AttachmentPreview.svelte b/src/lib/components/AttachmentPreview.svelte new file mode 100644 index 0000000..c12d1e7 --- /dev/null +++ b/src/lib/components/AttachmentPreview.svelte @@ -0,0 +1,204 @@ + + +{#if attachments.length > 0} +
+{/if} + + diff --git a/src/lib/components/InputBar.svelte b/src/lib/components/InputBar.svelte index 7313c06..166e047 100644 --- a/src/lib/components/InputBar.svelte +++ b/src/lib/components/InputBar.svelte @@ -22,6 +22,8 @@ isSlashCommand, type SlashCommand, } from "$lib/commands/slashCommands"; + import AttachmentPreview from "$lib/components/AttachmentPreview.svelte"; + import type { Attachment } from "$lib/types/messages"; const INPUT_HISTORY_KEY = "hikari-input-history"; const MAX_HISTORY_SIZE = 100; @@ -33,6 +35,7 @@ let showCommandMenu = $state(false); let matchingCommands = $state