24 lines
552 B
React
24 lines
552 B
React
|
// @flow
|
||
|
import * as MODALS from 'constants/modal_types';
|
||
|
import * as ICONS from 'constants/icons';
|
||
|
import React from 'react';
|
||
|
import Button from 'component/button';
|
||
|
|
||
|
type Props = {
|
||
|
uri: string,
|
||
|
doOpenModal: (id: string, {}) => void,
|
||
|
};
|
||
|
|
||
|
export default function ShareButton(props: Props) {
|
||
|
const { uri, doOpenModal } = props;
|
||
|
|
||
|
return (
|
||
|
<Button
|
||
|
button="alt"
|
||
|
icon={ICONS.SHARE}
|
||
|
label={__('Share Channel')}
|
||
|
onClick={() => doOpenModal(MODALS.SOCIAL_SHARE, { uri, speechShareable: true, isChannel: true })}
|
||
|
/>
|
||
|
);
|
||
|
}
|