Improving props drilling for resources and resources path

This commit is contained in:
2025-04-21 15:43:53 +02:00
parent 484246bd5d
commit ee9eb97262
10 changed files with 58 additions and 56 deletions

View File

@@ -0,0 +1,9 @@
import React, { createContext, PropsWithChildren } from 'react';
type ResourceContextType = {
basePath: string,
}
export const ResourceContext = createContext<ResourceContextType>(
{} as ResourceContextType
);