3034f4ce6c
* bring in ody styles; modify; cleanup * workflow * workflow * v0.52.6-alpha.teststyles.1 * fix hook * v0.52.6-alpha.teststyles.2 * style fixes * fix pagination styling * v0.52.6-alpha.teststyles.3 * wallet icon was bad * restore deploy script * fixes * fix player close button * modal inputs * cleanup * cleanup * fix staked indicator * fix profile menu button skel delay * fix view-all-playlists hover * fix overlay buttons on collection page * fix header buttons
24 lines
569 B
JavaScript
24 lines
569 B
JavaScript
// @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="secondary"
|
|
icon={ICONS.SHARE}
|
|
label={__('Share')}
|
|
title={__('Share this channel')}
|
|
onClick={() => doOpenModal(MODALS.SOCIAL_SHARE, { uri, webShareable: true })}
|
|
/>
|
|
);
|
|
}
|