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