import { type ObservationLevelType } from "@langfuse/shared"; export const LevelColors = { DEFAULT: { text: "", bg: "" }, DEBUG: { text: "text-muted-foreground", bg: "bg-primary-foreground" }, WARNING: { text: "text-dark-yellow", bg: "bg-light-yellow" }, ERROR: { text: "text-dark-red", bg: "bg-light-red" }, }; export const LevelSymbols = { DEFAULT: "â„šī¸", DEBUG: "🔍", WARNING: "âš ī¸", ERROR: "🚨", }; export const formatAsLabel = (countLabel: string) => { return countLabel.replace(/Count$/, "").toUpperCase() as ObservationLevelType; };