50 lines
1.0 KiB
TypeScript
50 lines
1.0 KiB
TypeScript
import * as React from "bloatless-react";
|
|
|
|
import { MessageObject } from "./Model/chatModel";
|
|
import { ObjectEntryView } from "./Views/Objects/objectEntryView";
|
|
|
|
export const storageKeys = {
|
|
viewType(id: string): string {
|
|
return id + "view-type";
|
|
},
|
|
|
|
hasUnread(id: string): string {
|
|
return id + "has-unread-messages";
|
|
},
|
|
|
|
primaryChannel(id: string): string {
|
|
return id + "primary-channel";
|
|
},
|
|
|
|
secondaryChannels(id: string): string {
|
|
return id + "secondary-channels";
|
|
},
|
|
|
|
encyptionKey(id: string): string {
|
|
return id + "encryption-key";
|
|
},
|
|
|
|
messages(id: string): string {
|
|
return id + "messages";
|
|
},
|
|
|
|
objects(id: string): string {
|
|
return id + "items";
|
|
},
|
|
|
|
outbox(id: string): string {
|
|
return id + "outbox";
|
|
},
|
|
|
|
itemOutbox(id: string): string {
|
|
return id + "item-outbox";
|
|
},
|
|
|
|
composingMessage(id: string): string {
|
|
return id + "composing-message";
|
|
},
|
|
};
|
|
|
|
export const stringToOptionTag: React.StateItemConverter<string> = (value) => {
|
|
return <option>{value}</option>;
|
|
}; |