2024-01-12 00:13:58 -05:00
|
|
|
import {CLEAR_HISTORY_COMMAND} from 'lexical';
|
|
|
|
import {useLexicalComposerContext} from '@lexical/react/LexicalComposerContext';
|
2024-01-23 04:27:34 -05:00
|
|
|
// import fileHelper from './fileHelper'
|
|
|
|
const fs = window.require("fs").promises
|
2024-01-12 00:13:58 -05:00
|
|
|
|
2024-01-23 04:27:34 -05:00
|
|
|
export async function importFile(pathName) {
|
|
|
|
return await fs.readFile(pathName)
|
|
|
|
}
|