mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 09:33:19 +03:00
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} />
|
||
|
}
|
||
|
}
|