wip
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
import { create } from 'zustand';
|
||||
|
||||
interface ComposerState {
|
||||
expand: boolean;
|
||||
open: boolean;
|
||||
reply: { id: string; pubkey: string; root?: string };
|
||||
toggleModal: () => void;
|
||||
toggleExpand: () => void;
|
||||
setReply: (id: string, pubkey: string, root?: string) => void;
|
||||
clearReply: () => void;
|
||||
}
|
||||
|
||||
export const useComposer = create<ComposerState>((set) => ({
|
||||
expand: false,
|
||||
open: false,
|
||||
reply: { id: null, pubkey: null, root: null },
|
||||
toggleModal: () => {
|
||||
set((state) => ({ open: !state.open }));
|
||||
},
|
||||
toggleExpand: () => {
|
||||
set((state) => ({ expand: !state.expand }));
|
||||
},
|
||||
setReply: (id: string, pubkey: string, root?: string) => {
|
||||
set({ reply: { id: id, pubkey: pubkey, root: root } });
|
||||
set({ open: true });
|
||||
},
|
||||
clearReply: () => {
|
||||
set({ reply: { id: null, pubkey: null, root: null } });
|
||||
},
|
||||
}));
|
||||
@@ -1,6 +1,7 @@
|
||||
export const FULL_RELAYS = [
|
||||
'wss://relay.damus.io',
|
||||
'wss://nos.lol',
|
||||
'wss://relay.primal.net',
|
||||
'wss://relayable.org',
|
||||
'wss://relay.nostr.band/all',
|
||||
'wss://nostr.mutinywallet.com',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user