'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>;
}
