flotilla/src/app/components/ContentCommand.svelte

17 lines
496 B
Svelte
Raw Normal View History

2026-09-07 16:48:36 +00:00
<script lang="ts">
import type {ParsedCommandValue} from "@welshman/content"
2026-09-07 16:48:36 +00:00
import type {CommandReader} from "@welshman/domain"
import ProfileName from "@app/components/ProfileName.svelte"
2026-09-07 16:48:36 +00:00
type Props = {
command: CommandReader
value: ParsedCommandValue
2026-09-07 16:48:36 +00:00
}
const {command, value}: Props = $props()
2026-09-07 16:48:36 +00:00
</script>
<span class="tiptap-object tip tip-top" data-tip={command.description()}>
/{command.command()}{#if value.pubkey}@<ProfileName pubkey={value.pubkey} />{/if}
2026-09-07 16:48:36 +00:00
</span>