mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-09-22 15:02:53 +02:00
25 lines
555 B
JavaScript
25 lines
555 B
JavaScript
import React from 'react';
|
|
import { matchShape } from 'found';
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
|
export default function SummaryTitle(props) {
|
|
return (
|
|
<span>
|
|
{props.match.params.hash == null ? (
|
|
<FormattedMessage
|
|
id="summary-page.title"
|
|
defaultMessage="Itinerary suggestions"
|
|
/>
|
|
) : (
|
|
<FormattedMessage
|
|
id="itinerary-page.title"
|
|
defaultMessage="Itinerary"
|
|
/>
|
|
)}
|
|
</span>
|
|
);
|
|
}
|
|
|
|
SummaryTitle.propTypes = {
|
|
match: matchShape.isRequired,
|
|
};
|