blowater/UI/search_model.ts
2023-10-06 00:05:35 +00:00

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,
};
};