mirror of
https://github.com/getredash/redash.git
synced 2026-03-22 01:00:14 -04:00
24 lines
456 B
JavaScript
24 lines
456 B
JavaScript
import React from "react";
|
|
import PropTypes from "prop-types";
|
|
|
|
import "./index.less";
|
|
|
|
export default function PageHeader({ title, actions }) {
|
|
return (
|
|
<div className="page-header-wrapper">
|
|
<h3>{title}</h3>
|
|
{actions && <div className="page-header-actions">{actions}</div>}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
PageHeader.propTypes = {
|
|
title: PropTypes.string,
|
|
actions: PropTypes.node,
|
|
};
|
|
|
|
PageHeader.defaultProps = {
|
|
title: "",
|
|
actions: null,
|
|
};
|