import React from "react";
import { VersionControl } from "../app-header/components/version-control";
import { useSelector } from "../../store/redux-separate-context";
const versionSelector = state => {
    const { data } = state.global.chartsMetadata;
    if (!data)
        return null;
    const { version, release_channel: releaseChannel } = data;
    return {
        version,
        releaseChannel,
    };
};
const Version = () => {
    const data = useSelector(versionSelector);
    return (data && React.createElement(VersionControl, { currentVersion: data.version, releaseChannel: data.releaseChannel }));
};
export default Version;
//# sourceMappingURL=version.js.map