chore: move all services inside the apps folder (#7321)
* chore: move all services inside the apps folder * chore: rename apiserver to server
This commit is contained in:
parent
6000639921
commit
944b873184
3442 changed files with 1 additions and 4 deletions
11
apps/web/core/hooks/use-stickies.tsx
Normal file
11
apps/web/core/hooks/use-stickies.tsx
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { useContext } from "react";
|
||||
// context
|
||||
import { StoreContext } from "@/lib/store-context";
|
||||
import { IStickyStore } from "@/store/sticky/sticky.store";
|
||||
// plane web stores
|
||||
|
||||
export const useSticky = (): IStickyStore => {
|
||||
const context = useContext(StoreContext);
|
||||
if (context === undefined) throw new Error("useSticky must be used within StoreProvider");
|
||||
return context.stickyStore;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue