20 lines
317 B
React
20 lines
317 B
React
|
// @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;
|