mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
27 lines
683 B
TypeScript
27 lines
683 B
TypeScript
import { getInjectable } from "@ogre-tools/injectable";
|
|
import createStorageInjectable from "../../../utils/create-storage/create-storage.injectable";
|
|
import type { DockStorageState } from "./store";
|
|
|
|
const dockStorageInjectable = getInjectable({
|
|
id: "dock-storage",
|
|
|
|
instantiate: (di) => {
|
|
const createStorage = di.inject(createStorageInjectable);
|
|
|
|
return createStorage<DockStorageState>("dock", {
|
|
height: 300,
|
|
tabs: [
|
|
// {
|
|
// id: "terminal",
|
|
// kind: TabKind.TERMINAL,
|
|
// title: "Terminal",
|
|
// pinned: false,
|
|
// },
|
|
],
|
|
isOpen: false,
|
|
});
|
|
},
|
|
});
|
|
|
|
export default dockStorageInjectable;
|