import clsx from 'clsx'; import React, { useState } from 'react'; import Icon from 'soapbox/components/icon'; import { useAppSelector } from 'soapbox/hooks'; import { makeGetRemoteInstance } from 'soapbox/selectors'; import InstanceRestrictions from './instance-restrictions'; const getRemoteInstance = makeGetRemoteInstance(); interface IRestrictedInstance { host: string } const RestrictedInstance: React.FC = ({ host }) => { const remoteInstance: any = useAppSelector((state) => getRemoteInstance(state, host)); const [expanded, setExpanded] = useState(false); const toggleExpanded: React.MouseEventHandler = e => { setExpanded((value) => !value); e.preventDefault(); }; return (
{remoteInstance.get('host')}
); }; export default RestrictedInstance;