import NoteView from './NoteView' import NoteEdit from './NoteEdit' import Import from './Import' const Actions = ({ action, setAction, fetchedNote, setFetchedNote }) => { switch (action) { case 'showNote': return ( ) case 'addNote': return ( ) case 'editNote': return ( ) case 'importNote': return ( ) default: { setAction('') return null } } } export default Actions