React component for showing status messages