import {actionClosedMessageBanner} from "./state/action.ts"; export default function MessageBanner({state, dispatch}) { function handleClose() { dispatch(actionClosedMessageBanner()); } if (!!state.errorMessage) { return (