mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
24 lines
732 B
TypeScript
24 lines
732 B
TypeScript
import { useAppContext } from '@/hooks/useAppContext';
|
|
|
|
/**
|
|
* Hook to access configured virtual filesystem paths
|
|
*
|
|
* @returns Object containing VFS path configurations
|
|
*/
|
|
export function useFSPaths() {
|
|
const { config } = useAppContext();
|
|
|
|
return {
|
|
/** Projects directory path (default: /projects) */
|
|
projectsPath: config.fsPathProjects,
|
|
/** Config directory path (default: /config) */
|
|
configPath: config.fsPathConfig,
|
|
/** Temporary files directory path (default: /tmp) */
|
|
tmpPath: config.fsPathTmp,
|
|
/** Plugins directory path (default: /plugins) */
|
|
pluginsPath: config.fsPathPlugins,
|
|
/** Templates directory path (default: /templates) */
|
|
templatesPath: config.fsPathTemplates,
|
|
};
|
|
}
|