--- // Recursive file-tree sidebar. Directories are collapsible
, expanded // along the path to the current file. Files link to the sidebar's current view // (rendered or raw), so navigating the tree keeps you in the same view. import Self from './FileTree.astro'; import type { TreeNode } from '../lib/manifest'; interface Props { node: TreeNode; current: string; view: 'rendered' | 'raw'; } const { node, current, view } = Astro.props; ---