lbry-desktop/ui/component/channelTitle/view.jsx
2020-03-19 12:12:19 -04:00

19 lines
317 B
JavaScript

// @flow
import React from 'react';
type Props = {
claim: ?ChannelClaim,
title: ?string,
};
function ChannelTitle(props: Props) {
const { title, claim } = props;
if (!claim) {
return null;
}
return <div className="claim-preview__title">{title || claim.name}</div>;
}
export default ChannelTitle;