import { useRecord } from '@nocobase/client'; import React from 'react'; import { Button } from 'antd'; import { css } from '@emotion/css'; import { useTranslation } from 'react-i18next'; import { useNavigate } from 'react-router-dom'; import { getConnectionCollectionPath } from '../constant'; export const ViewDatabaseConnectionAction = () => { const record = useRecord(); const navigate = useNavigate(); const { t } = useTranslation(); return (