Small thing

This commit is contained in:
2025-11-11 19:56:13 +01:00
parent defbbc35f8
commit 03a8b837b6
6 changed files with 312 additions and 33 deletions
+30
View File
@@ -0,0 +1,30 @@
import { Entity } from "@/components/sidebar/Entity";
import { SetState } from "@/lib/types";
import { useState } from "react";
export type Workspace = {
name: string;
entities: Entity[];
route: string;
setRoute: SetState<string>;
};
export default function useWorkspace(): Workspace {
const [route, setRoute] = useState("");
return {
name: "Personal Workspace",
entities: [
{
id: "alpha",
name: "Project alpha",
kind: "group",
children: [{ id: "alpha_tasks", name: "Tasks", kind: "todo" }],
},
],
route,
setRoute,
};
}