mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2026-02-01 13:00:49 +01:00
36 lines
1 KiB
JavaScript
36 lines
1 KiB
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import Icon from '../../Icon';
|
|
|
|
/**
|
|
* StopHeaderDisplay - Displays stop information for printing
|
|
* Shows origin and destination stops with map marker icons
|
|
* This component is only visible when printing the schedule
|
|
*/
|
|
const StopHeaderDisplay = ({ fromDisplayName, toDisplayName }) => {
|
|
return (
|
|
<div className="printable-stop-header">
|
|
<div className="printable-stop-header_icon-from">
|
|
<Icon img="icon_mapMarker" />
|
|
</div>
|
|
<div className="printable-stop-header_from">
|
|
<span>{fromDisplayName}</span>
|
|
</div>
|
|
<div className="printable-stop-header_icon-to">
|
|
<Icon img="icon_mapMarker" />
|
|
</div>
|
|
<div className="printable-stop-header_to">
|
|
<span>{toDisplayName}</span>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
StopHeaderDisplay.propTypes = {
|
|
fromDisplayName: PropTypes.string.isRequired,
|
|
toDisplayName: PropTypes.string.isRequired,
|
|
};
|
|
|
|
StopHeaderDisplay.displayName = 'StopHeaderDisplay';
|
|
|
|
export default StopHeaderDisplay;
|