💡 Sorted imports

This commit is contained in:
alexis committed 2024-02-18 17:38:28 +01:00
1 parent b7ff232f34
commit c2db839ebe
4 files changed
+30 -10

No files matched your search

+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({});