chore(react/collections): get list view to show something

This commit is contained in:
Elian Doran
2025-08-30 15:44:49 +03:00
parent ecf44deecf
commit 09fd1c7628
5 changed files with 91 additions and 68 deletions

View File

@@ -1,5 +1,14 @@
import FNote from "../../entities/fnote";
import type { ViewModeArgs } from "../view_widgets/view_mode";
export const allViewTypes = ["list", "grid", "calendar", "table", "geoMap", "board"] as const;
export type ArgsWithoutNoteId = Omit<ViewModeArgs, "noteIds">;
export type ViewTypeOptions = typeof allViewTypes[number];
export interface ViewModeProps {
note: FNote;
/**
* We're using noteIds so that it's not necessary to load all notes at once when paging.
*/
noteIds: string[];
}