import { queryOptions } from "@tanstack/react-query";
import { jsonQuery } from "../apiAdapter";

export const vehicleListOptions = () =>
  queryOptions({
    queryKey: ["vehicles"],
    queryFn: () => jsonQuery<Record<string, unknown>[]>("/api/admin/vehicles"),
  });
