Extract context types

This commit is contained in:
schroda
2024-12-20 21:42:54 +01:00
parent 9d37c8bc15
commit 570b831604
21 changed files with 112 additions and 107 deletions

View File

@@ -7,11 +7,7 @@
*/
import { createContext, useContext } from 'react';
type TReaderTapZoneContext = {
showPreview: boolean;
setShowPreview: (showPreview: boolean) => void;
};
import { TReaderTapZoneContext } from '@/modules/reader/types/TapZoneLayout.types.ts';
export const ReaderTapZoneContext = createContext<TReaderTapZoneContext>({
showPreview: false,