lbry-desktop/ui/component/fileTitle/view.jsx
2021-03-11 14:12:59 -05:00

23 lines
417 B
JavaScript

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