2026-09-07 16:48:36 +00:00
|
|
|
<script lang="ts">
|
2026-09-09 01:09:24 +00:00
|
|
|
import type {ParsedCommandValue} from "@welshman/content"
|
2026-09-07 16:48:36 +00:00
|
|
|
import type {CommandReader} from "@welshman/domain"
|
2026-09-09 01:09:24 +00:00
|
|
|
import ProfileName from "@app/components/ProfileName.svelte"
|
2026-09-07 16:48:36 +00:00
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
|
command: CommandReader
|
2026-09-09 01:09:24 +00:00
|
|
|
value: ParsedCommandValue
|
2026-09-07 16:48:36 +00:00
|
|
|
}
|
|
|
|
|
|
2026-09-09 01:09:24 +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()}>
|
2026-09-09 01:09:24 +00:00
|
|
|
/{command.command()}{#if value.pubkey}@<ProfileName pubkey={value.pubkey} />{/if}
|
2026-09-07 16:48:36 +00:00
|
|
|
</span>
|