blowater/app/UI/search_model.ts
2024-01-02 01:28:10 +08:00

27 lines
560 B
TypeScript

import { PublicKey } from "../../libs/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,
};
};