add: databases WIP
This commit is contained in:
10
contexts/workspace.tsx
Normal file
10
contexts/workspace.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
'use client';
|
||||
|
||||
import { Workspace } from '@prisma/client';
|
||||
import { createContext } from 'react';
|
||||
|
||||
export const Work = createContext<Workspace>();
|
||||
|
||||
export function WorkspaceProvider({ children, workspace }: { children: React.ReactNode; workspace: Workspace }) {
|
||||
return <Work.Provider value={workspace}>{children}</Work.Provider>;
|
||||
}
|
||||
Reference in New Issue
Block a user