import type { SpreadsheetCommand } from '../types';

export function createSetCellValueCommand(
  undo: () => void | Promise<void>,
  redo: () => void | Promise<void>,
): SpreadsheetCommand {
  return {
    label: 'setCellValue',
    undo,
    redo,
  };
}
