💡 Sorted imports

This commit is contained in:
2024-02-18 17:38:28 +01:00
parent b7ff232f34
commit c2db839ebe
4 changed files with 30 additions and 10 deletions
+11 -3
View File
@@ -2,11 +2,19 @@
//! Imports
// ---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------ React --------------------------------------------------------
import { MouseEvent, useCallback, useState } from 'react';
import { Difficulty, GridType } from '../../../types/game';
import { discoverAroundCell, revealAllGrid, startGame } from '../../../utils/game';
import { GameState } from '../../../types/gameState';
// ---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------ Types --------------------------------------------------------
import { SetterOrUpdater } from 'recoil';
import { Difficulty, GridType } from '../../../types/game';
import { GameState } from '../../../types/gameState';
// ---------------------------------------------------------------------------------------------------------------------
// ------------------------------------------------------ Utils --------------------------------------------------------
import { discoverAroundCell, revealAllGrid, startGame } from '../../../utils/game';
// ---------------------------------------------------------------------------------------------------------------------
export const useActions = (grid: GridType, setGrid: React.Dispatch<React.SetStateAction<GridType>>, gameState: GameState, setGameState: SetterOrUpdater<GameState>) => {
const [, updateGrid] = useState({});