import React, { useEffect } from 'react'; import TeamsChannelList from './TeamsChannelList'; import { fetchList, init } from 'Duck/integrations/teams'; import { connect } from 'react-redux'; import TeamsAddForm from './TeamsAddForm'; import { Button } from 'UI'; interface Props { onEdit?: (integration: any) => void; istance: any; fetchList: any; init: any; } const MSTeams = (props: Props) => { const [active, setActive] = React.useState(false); const onEdit = () => { setActive(true); }; const onNew = () => { setActive(true); props.init({}); } useEffect(() => { props.fetchList(); }, []); return (
{active && (
setActive(false)} />
)}

Microsoft Teams

); }; MSTeams.displayName = 'MSTeams'; export default connect( (state: any) => ({ istance: state.getIn(['teams', 'instance']), }), { fetchList, init } )(MSTeams);