///////////////////////////////////////////////////////////// // // pgAdmin 4 - PostgreSQL Tools // // Copyright (C) 2013 - 2021, The pgAdmin Development Team // This software is released under the PostgreSQL Licence // ////////////////////////////////////////////////////////////// import React from 'react'; import PropTypes from 'prop-types'; export function ChartContainer(props) { return (
{props.title}
{props.children}
); } ChartContainer.propTypes = { id: PropTypes.string.isRequired, title: PropTypes.string.isRequired, legendRef: PropTypes.oneOfType([ PropTypes.func, PropTypes.shape({ current: PropTypes.any }), ]).isRequired, children: PropTypes.node.isRequired, errorMsg: PropTypes.string, }; export function ChartError(props) { if(props.message === null) { return <>; } return (
{props.message}
); } ChartError.propTypes = { message: PropTypes.string, }; export function DashboardRow({children}) { return (
{children}
); } DashboardRow.propTypes = { children: PropTypes.node.isRequired, }; export function DashboardRowCol({breakpoint, parts, children}) { return (
{children}
); } DashboardRowCol.propTypes = { breakpoint: PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl']).isRequired, parts: PropTypes.number.isRequired, children: PropTypes.node.isRequired, };