// @flow import * as MODALS from 'constants/modal_types'; import * as ICONS from 'constants/icons'; import React from 'react'; import Button from 'component/button'; import classnames from 'classnames'; import Tooltip from 'component/common/tooltip'; type Props = { uri: string, fileAction?: boolean, type?: boolean, // redux streamType: Claim, isSaved: boolean, doOpenModal: (id: string, {}) => void, }; export default function CollectionAddButton(props: Props) { const { uri, fileAction, type = 'playlist', isSaved, streamType, doOpenModal } = props; const isPlayable = streamType === 'video' || streamType === 'audio'; return !isPlayable ? null : (