import React from 'react'; import { connect } from 'react-redux'; import { NoContent } from 'UI'; import { remove, edit, init } from 'Duck/integrations/slack'; import DocLink from 'Shared/DocLink/DocLink'; function SlackChannelList(props) { const { list } = props; const onEdit = (instance) => { props.edit(instance); props.onEdit(); }; return (
Integrate Slack with OpenReplay and share insights with the rest of the team, directly from the recording page.
} size="small" show={list.size === 0} > {list.map((c) => (
onEdit(c)} >
{c.name}
{c.endpoint}
))} ); } export default connect( (state) => ({ list: state.getIn(['slack', 'list']), }), { remove, edit, init } )(SlackChannelList);