PageDescription.jsx revision b8487a2e9ef077be108e3811d9f67b6c896132ef
893N/A/**
3909N/A * The contents of this file are subject to the terms of the Common Development and
893N/A * Distribution License (the License). You may not use this file except in compliance with the
893N/A * License.
893N/A *
893N/A * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
893N/A * specific language governing permission and limitations under the License.
893N/A *
893N/A * When distributing Covered Software, include this CDDL Header Notice in each file and include
893N/A * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
893N/A * Header, with the fields enclosed by brackets [] replaced by your own identifying
893N/A * information: "Portions copyright [year] [name of copyright owner]".
893N/A *
893N/A * Copyright 2016 ForgeRock AS.
2362N/A */
893N/A
893N/Aimport React from "react";
893N/A
893N/A/**
893N/A * A page description.
893N/A * @module components/PageDescription
893N/A * @param {Object} props Properties passed to this component
893N/A * @param {string} props.text Text to display for the page description
893N/A * @returns {ReactElement} Renderable React element
893N/A */
893N/Aconst PageDescription = ({ text }) => <p className="page-description">{text}</p>;
893N/A
893N/APageDescription.propTypes = {
893N/A text: React.PropTypes.string.isRequired
893N/A};
893N/A
4378N/Aexport default PageDescription;
4378N/A