teableio/teable

View on GitHub
apps/nextjs-app/src/components/layout/MainLayout.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import type { FC, ReactNode } from 'react';

export const MainLayout: FC<{ children: ReactNode }> = (props) => {
  const { children } = props;
  return (
    <div
      className="flex h-screen flex-col"
      onContextMenu={(e) => {
        e.preventDefault();
      }}
    >
      <main>{children}</main>
    </div>
  );
};