import React from 'react'; import Tooltip from '../../components/tooltip'; import { CopyProps } from '../data-containers/category-view-props'; interface DataTitleProps { title: string; tooltip: string; } const DataTitle: React.FunctionComponent = (props) => { return (
{ props.title } { props.tooltip? : null }
) } interface DataTitleCopyableProps { title: string; tooltip?: string; slug: string; disabled?: boolean; copy?: CopyProps; } const DataTitleCopyable: React.FunctionComponent = (props) => { return (
{ props.tooltip? : null } { (props.copy && props.copy.copying && props.slug && !props.disabled)?
: null }
); } export default DataTitle; export { DataTitleCopyable }