tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

SectionTitle.jsx (566B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 import React from "react";
      6 
      7 export class SectionTitle extends React.PureComponent {
      8  render() {
      9    const {
     10      header: { title, subtitle },
     11    } = this.props;
     12    return (
     13      <div className="ds-section-title">
     14        <div className="title">{title}</div>
     15        {subtitle ? <div className="subtitle">{subtitle}</div> : null}
     16      </div>
     17    );
     18  }
     19 }