import { prisma } from "@/lib/db";
import type { UsesItem } from "@prisma/client";

export async function getAllUsesItems(): Promise<UsesItem[]> {
  return prisma.usesItem.findMany({
    orderBy: [{ category: "asc" }, { sortOrder: "asc" }, { title: "asc" }],
  });
}
