import React from "react";

export default function AdminPageHeader({ title, subtitle, actions = null }) {
  return (
    <header className="portal-page-header portal-page-header--solo">
      <div className="portal-page-header__text">
        <h1 className="portal-page-title">{title}</h1>
        {subtitle ? <p className="portal-page-subtitle">{subtitle}</p> : null}
      </div>
      {actions ? (
        <div className="portal-page-header__actions">{actions}</div>
      ) : null}
    </header>
  );
}
