chat-ui / src /lib /stores /errors.ts
coyotte508
A new start
fc69895
import { writable } from "svelte/store";
export const ERROR_MESSAGES = {
default: "Oops, something went wrong.",
authOnly: "You have to be logged in.",
rateLimited: "You are sending too many messages. Try again later.",
};
export const error = writable<string | undefined>(undefined);