mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 16:04:23 +00:00
Split large contexts
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
import { useCallback } from 'react';
|
||||
import { useToasts } from '@geist-ui/core';
|
||||
import { lookupFileByName } from '../services/api';
|
||||
import { useFileContentContext } from '../contexts/FileContentContext';
|
||||
import { useFileSelection } from '../contexts/FileSelectionContext';
|
||||
|
||||
export const useFileNavigation = () => {
|
||||
const { setToast } = useToasts();
|
||||
const { handleFileSelect } = useFileContentContext();
|
||||
const { handleFileSelect } = useFileSelection();
|
||||
|
||||
const handleLinkClick = useCallback(
|
||||
async (filename) => {
|
||||
|
||||
Reference in New Issue
Block a user