blob: cb8a20b21e877e9f9eb43ba309b6a4981a223b0f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 (
<BookmarkListContext.Provider value={{ listId }}>
{children}
</BookmarkListContext.Provider>
);
}
|