'use strict'; import classNames from 'classnames'; import React from 'react'; import { Link } from 'react-router-dom'; import { useSettings } from 'soapbox/hooks'; interface IPinnedHostsPicker { /** The active host among pinned hosts. */ host: string, } const PinnedHostsPicker: React.FC = ({ host: activeHost }) => { const settings = useSettings(); const pinnedHosts = settings.getIn(['remote_timeline', 'pinnedHosts']) as any; if (!pinnedHosts || pinnedHosts.isEmpty()) return null; return (
{pinnedHosts.map((host: any) => (
{host}
))}
); }; export default PinnedHostsPicker;