mirror of
https://github.com/plausible/analytics.git
synced 2024-12-22 09:01:40 +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} />
|
||
|
}
|
||
|
}
|