To reduce the cognitive load associated with writing file and folder block components, we've assembled a helper library called `@githunext/utils` that exposes interface definitions and a few helper functions.
To reduce the cognitive load associated with writing file and folder block components, we've assembled a helper library called @githunext/utils that exposes interface definitions and a few helper functions.
How to use
yarn add @githubnext/utils
import { FileBlockProps, FolderBlockProps, getLanguageFromFilename, getNestedFileTree,} from '@githubnext/utils`
FileBlockProps
import { FileBlockProps } from '@githubnext/utils';export default function (props: FileBlockProps) { const { content, metadata, onUpdateMetadata } = props; ...}