{preset.name}
- {canApply
- ? `${preset.slots}+ windows`
- : `Needs ${preset.slots} (have ${windowCount})`}
+ {statusText}
diff --git a/src/lib/layout-presets.ts b/src/lib/layout-presets.ts
index 6becbae..247daa3 100644
--- a/src/lib/layout-presets.ts
+++ b/src/lib/layout-presets.ts
@@ -1,7 +1,7 @@
import type { MosaicNode } from "react-mosaic-component";
/**
- * A layout preset template with null values that get filled with window IDs
+ * A layout preset that can be applied to arrange windows
*/
export interface LayoutPreset {
/** Unique identifier for the preset */
@@ -10,10 +10,101 @@ export interface LayoutPreset {
name: string;
/** Description of the layout arrangement */
description: string;
- /** Template structure with null values to be replaced by window IDs */
- template: MosaicNode