import React, { useEffect } from 'react' // eslint-disable-line
const TerminalWelcomeMessage = ({ packageJson, storage }) => {
useEffect(() => {
console.log(storage)
}, [
storage
])
return (
Welcome to Remix {packageJson}
Your files are stored in {(window as any).remixFileSystem.name}, {storage && storage.usage} used
You can use this terminal to:
- Check transactions details and start debugging.
- Execute JavaScript scripts:
- Input a script directly in the command line interface
- Select a Javascript file in the file explorer and then run \`remix.execute()\` or \`remix.exeCurrent()\` in the command line interface
- Right click on a JavaScript file in the file explorer and then click \`Run\`
The following libraries are accessible:
Type the library name to see available commands.
)
}
export default TerminalWelcomeMessage