20 lines
705 B
TypeScript
20 lines
705 B
TypeScript
import { KanbanBoard, KanbanLayout, MatrixBoard, MatrixLayout } from "./types";
|
|
|
|
export function emptyKanbanBoard(): KanbanBoard {
|
|
return { backlog: [], inProgress: [], done: [] };
|
|
}
|
|
|
|
export function emptyMatrixBoard(): MatrixBoard {
|
|
return { topLeft: [], topRight: [], bottomLeft: [], bottomRight: [] };
|
|
}
|
|
|
|
export function emptyKanbanLayout(groupByNotebook: boolean): KanbanLayout {
|
|
if (groupByNotebook) return { kind: "notebooks", groups: [] };
|
|
return { kind: "single", board: emptyKanbanBoard() };
|
|
}
|
|
|
|
export function emptyMatrixLayout(groupByNotebook: boolean): MatrixLayout {
|
|
if (groupByNotebook) return { kind: "notebooks", groups: [] };
|
|
return { kind: "single", board: emptyMatrixBoard() };
|
|
}
|