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

24 lines
417 B
React
Raw Permalink Normal View History

// @flow
2021-03-11 18:08:11 +01:00
import type { Node } from 'react';
import * as React from 'react';
2021-03-11 18:08:11 +01:00
import classnames from 'classnames';
type Props = {
title: string,
2021-03-11 18:08:11 +01:00
className?: string,
children?: Node,
};
function FileTitle(props: Props) {
2021-03-11 18:08:11 +01:00
const { title, children, className } = props;
return (
2021-03-11 18:08:11 +01:00
<h1 className={classnames(className)}>
<span>{title}</span>
{children}
</h1>
);
}
export default FileTitle;