import type { OrganizationQueries } from "../module";

export type Company = NonNullable<
  Awaited<ReturnType<OrganizationQueries["getCompany"]>>["value"]["company"]
>;

export const mockOrgQueries = (
  company: Company | null,
): Pick<OrganizationQueries, "getCompany"> => ({
  getCompany: () => Promise.resolve({ ok: true as const, value: { company } }),
});
