mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-07-27 15:05:15 +02:00

Also: - Move generic Toggle to componentfolder root - Remove dead styles - Refactor some componets
25 lines
567 B
JavaScript
25 lines
567 B
JavaScript
import React from 'react';
|
|
import { matchShape } from 'found';
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
|
export default function ItineraryPageTitle(props) {
|
|
return (
|
|
<span>
|
|
{props.match.params.hash == null ? (
|
|
<FormattedMessage
|
|
id="summary-page.title"
|
|
defaultMessage="Itinerary suggestions"
|
|
/>
|
|
) : (
|
|
<FormattedMessage
|
|
id="itinerary-page.title"
|
|
defaultMessage="Itinerary"
|
|
/>
|
|
)}
|
|
</span>
|
|
);
|
|
}
|
|
|
|
ItineraryPageTitle.propTypes = {
|
|
match: matchShape.isRequired,
|
|
};
|