madiator.com/ui/component/fileTitle/view.jsx

24 lines
417 B
React
Raw Permalink Normal View History

2021-08-16 12:11:25 +02:00
// @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;