import React from 'react';
import { useParams } from 'react-router-dom';
import DbTablePageWrapper from './DbTablePageWrapper';
import { jsx as _jsx } from "react/jsx-runtime";
function Action() {
  const params = useParams();
  if (!params.dbName) return /*#__PURE__*/_jsx("div", {
    children: "db name is required"
  });
  if (!params.tableName) return /*#__PURE__*/_jsx("div", {
    children: "table name is required"
  });
  if (!params.action) return /*#__PURE__*/_jsx("div", {
    children: "action is required"
  });
  return /*#__PURE__*/_jsx(DbTablePageWrapper, {
    dbName: params.dbName,
    tableName: params.tableName,
    action: params.action
  });
}
export default Action;
//# sourceMappingURL=Action.js.map