///////////////////////////////////////////////////////////// // // pgAdmin 4 - PostgreSQL Tools // // Copyright (C) 2013 - 2024, The pgAdmin Development Team // This software is released under the PostgreSQL Licence // ////////////////////////////////////////////////////////////// import React from 'react'; import PropTypes from 'prop-types'; import ErrorBoundary from 'sources/helpers/ErrorBoundary'; import SchemaDialogView from './SchemaDialogView'; import SchemaPropertiesView from './SchemaPropertiesView'; import { registerView } from './registry'; export default function SchemaView({formType, ...props}) { /* Switch the view based on formType */ return ( { formType === 'tab' ? : } ); } SchemaView.propTypes = { formType: PropTypes.oneOf(['tab', 'dialog']), }; registerView(SchemaView, 'SchemaView');