mirror of
https://github.com/BlowaterNostr/blowater.git
synced 2024-10-18 15:43:20 +00:00
27 lines
556 B
TypeScript
27 lines
556 B
TypeScript
import { PublicKey } from "../lib/nostr-ts/key.ts";
|
|
import { ProfileData } from "../features/profile.ts";
|
|
|
|
export type SearchUpdate = Cancel | SelectConversation | Start;
|
|
export type Start = {
|
|
type: "StartSearch";
|
|
};
|
|
export type Cancel = {
|
|
type: "CancelPopOver";
|
|
};
|
|
|
|
export type SelectConversation = {
|
|
type: "SelectConversation";
|
|
pubkey: PublicKey;
|
|
isGroupChat: boolean;
|
|
};
|
|
|
|
export type SearchModel = {
|
|
isSearching: boolean;
|
|
};
|
|
|
|
export const SearchInitModel = (): SearchModel => {
|
|
return {
|
|
isSearching: false,
|
|
};
|
|
};
|