import React from "react";
import PropTypes from "prop-types";
import {
  PrivacyPolicySectionContainer,
  PrivacyPolicySectionText,
  PrivacyPolicySectionTitle,
} from "./PrivacyPolicySection.styled";

const PrivacyPolicySection = (props) => {
  return (
    <PrivacyPolicySectionContainer>
      <PrivacyPolicySectionTitle>{props.title}</PrivacyPolicySectionTitle>
      <PrivacyPolicySectionText>{props.text}</PrivacyPolicySectionText>
    </PrivacyPolicySectionContainer>
  );
};

PrivacyPolicySection.propTypes = {
  title: PropTypes.string,
  text: PropTypes.string,
};

export default PrivacyPolicySection;
