lbry-desktop/ui/component/channelTitle/view.jsx

20 lines
317 B
React
Raw Normal View History

2020-03-18 22:14:11 +01:00
// @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;