aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/common.ts
blob: 6dcd2a9ea6fc583ba3f9cfa0b88240ccfdca59de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// This error is thrown when ui goes wrong with bad logic.
// Such as a variable should not be null, but it does.
// This error should never occur. If it does, it indicates there is some logic bug in codes.
export class UiLogicError extends Error {}

export const highlightTimelineUsername = "crupest";

export type { I18nText } from "./i18n";
export { c, convertI18nText } from "./i18n";
export { default as useC } from "./utilities/hooks/use-c";

export const themeColors = [
  "primary",
  "secondary",
  "tertiary",
  "danger",
  "success",
] as const;

export type ThemeColor = (typeof themeColors)[number];