Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

274 B
Raw Blame
import type { Database } from "@homarr/db";
import { like } from "@homarr/db";
import { icons } from "@homarr/db/schema";

export const getIconForName = (db: Database, name: string) => {
  return db.query.icons.findFirst({
    where: like(icons.name, `%${name}%`),
  });
};