mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-05-07 12:09:36 +00:00
167e3910df
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
21 lines
361 B
TypeScript
21 lines
361 B
TypeScript
/**
|
|
* useFileTree hook (stub)
|
|
*/
|
|
|
|
export interface FileNode {
|
|
name: string
|
|
path: string
|
|
type: 'file' | 'directory'
|
|
children?: FileNode[]
|
|
}
|
|
|
|
export function useFileTree(_rootPath?: string) {
|
|
// TODO: Implement useFileTree
|
|
return {
|
|
tree: null as FileNode | null,
|
|
loading: false,
|
|
error: null as Error | null,
|
|
refresh: () => {},
|
|
}
|
|
}
|