import type { PageOptionsState } from "@/types/page-options";

export type PageTitleCommandInput = {
  documentId: string;
  workspaceId?: string | null;
  title: string;
};

export type PageLayoutCommandInput = {
  documentId: string;
  workspaceId?: string | null;
  pageOptions: Partial<PageOptionsState>;
};

export const PAGE_COMMAND_NAMES = {
  updateTitle: "page.head.updateTitle",
  updateLayout: "page.layout.updateOptions",
  saveBody: "page.body.save",
} as const;
