From d3d3ba9d4a37ac757b4b8e8e02feae384c95f0e9 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Wed, 20 Mar 2024 23:51:28 +0000 Subject: feature(web): Add support for removing items from lists --- apps/web/lib/hooks/list-context.tsx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 apps/web/lib/hooks/list-context.tsx (limited to 'apps/web/lib') diff --git a/apps/web/lib/hooks/list-context.tsx b/apps/web/lib/hooks/list-context.tsx new file mode 100644 index 00000000..cb8a20b2 --- /dev/null +++ b/apps/web/lib/hooks/list-context.tsx @@ -0,0 +1,21 @@ +"use client"; + +import { createContext } from "react"; + +export const BookmarkListContext = createContext<{ + listId: string | undefined; +}>({ listId: undefined }); + +export function BookmarkListContextProvider({ + listId, + children, +}: { + listId: string; + children: React.ReactNode; +}) { + return ( + + {children} + + ); +} -- cgit v1.2.3-70-g09d2