Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

122 B
Raw Blame
export function switchCase<T extends string | number, R>(
  value: T,
  cases: Record<T, R>,
) {
  return cases[value];
}