Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (17 sloc) 715 Bytes
import * as React from "react";
import { SelectedFeatureCount } from "../components/selected-feature-count";
import { useViewerLocale, useActiveMapSelectionSet } from './hooks';
export interface ISelectedFeatureCountContainerProps {
style?: React.CSSProperties;
}
const SelectedFeatureCountContainer = (props: ISelectedFeatureCountContainerProps) => {
const { style } = props;
const selection = useActiveMapSelectionSet();
const locale = useViewerLocale();
if (selection && selection.FeatureSet) {
return <SelectedFeatureCount locale={locale} style={style} selection={selection.FeatureSet} />;
} else {
return <div />;
}
}
export default SelectedFeatureCountContainer;
You can’t perform that action at this time.