This commit is contained in:
Shusui MOYATANI
2023-02-22 22:13:13 +09:00
parent 57969c2c09
commit dadf285428
9 changed files with 206 additions and 67 deletions

View File

@@ -4,7 +4,11 @@ import type { Event as NostrEvent } from 'nostr-tools/event';
import usePool from '@/clients/usePool';
type UseCommands = {
publishTextNote: ({ content }: { content: string }) => Promise<void>;
publishTextNote: (props: {
relayUrls: string[];
pubkey: string;
content: string;
}) => Promise<void>;
};
const useCommands = (): UseCommands => {