import { useContext } from 'react' import { IdeContext } from 'src/components/IdeToolbarNew' const IdeViewer = () => { const { state } = useContext(IdeContext) const image = state.objectData?.type === 'png' && state.objectData?.data && window.URL.createObjectURL(state.objectData?.data) return (
hi I'm viewer
I should be showing an{' '} {state.objectData?.type}{' '} right now with the data{' '}
{image && (
)}
) } export default IdeViewer