teableio/teable

View on GitHub
apps/nextjs-app/src/features/app/blocks/db-connection/PanelTrigger.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { Dialog, DialogContent, DialogTrigger } from '@teable/ui-lib/shadcn';
import { DbConnectionPanel } from './Panel';

export const DbConnectionPanelTrigger: React.FC<{ children: React.ReactNode }> = ({ children }) => {
  return (
    <Dialog>
      <DialogTrigger asChild>{children}</DialogTrigger>
      <DialogContent className="p-0">
        <DbConnectionPanel className="border-none p-0 shadow-none" />
      </DialogContent>
    </Dialog>
  );
};