import React from 'react';
import lodash from 'lodash';
import Platforms from '../lib/Platforms';
import DetectedPlatformAccountsStore from '../stores/DetectedPlatformAccountsStore';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import Switch from './common/Switch';
import RouterUtils from '../utils/RouterUtils';
import FriendsActionCreators from '../actions/FriendsActionCreators';
import PlatformAccountsActionCreators from '../actions/PlatformAccountsActionCreators';
import ConnectedAccountsActionCreators from '../actions/ConnectedAccountsActionCreators';
import i18n from '../i18n';
import {Routes, FriendsSections} from '../Constants';
import Backdrop from './common/Backdrop';
import HelpdeskUtils from '../utils/HelpdeskUtils';
import '../styles/detected_platform_accounts_modal.styl';
const DetectedPlatformAccount = ({account, platform, connect, onToggle}) =>