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.

459 B
Raw Blame
import { createId } from "@homarr/common";

import type { EmptySection } from "~/app/[locale]/boards/_types";

export class EmptySectionMockBuilder {
  private readonly section: EmptySection;

  constructor(section?: Partial<EmptySection>) {
    this.section = {
      id: createId(),
      kind: "empty",
      xOffset: 0,
      yOffset: 0,
      ...section,
    } satisfies EmptySection;
  }

  public build(): EmptySection {
    return this.section;
  }
}