mirror of
https://github.com/plausible/analytics.git
synced 2024-12-22 17:11:36 +03:00
8ca08d8177
* Extract referrers report * Use new sourcs report in realtime * Show appropriate messages for error conditions
15 lines
416 B
JavaScript
15 lines
416 B
JavaScript
import React from 'react';
|
|
import SearchTerms from './search-terms'
|
|
import SourceList from './source-list'
|
|
import ReferrerList from './referrer-list'
|
|
|
|
export default function Sources(props) {
|
|
if (props.query.filters.source === 'Google') {
|
|
return <SearchTerms {...props} />
|
|
} else if (props.query.filters.source) {
|
|
return <ReferrerList {...props} />
|
|
} else {
|
|
return <SourceList {...props} />
|
|
}
|
|
}
|