Create for me a react component that uses antd components that has a grid. on that grid there should be 4 main sections.
Header at the top that takes up the full width and has a set size in px height and never changes in height.
Case information section that is essentially an antd Space as a container for wrapped key:value pairs. This section also takes up the full width.
The remaining area is taken up by two side by side antd spaces with an antd title and table in each vertically stacked. The left space should take up 2/3 the horizontal space available in the popover, the space on the right should take up the remaining 1/3 horizontal space. The antd title inside the left space should have "Diagnoses" as its text. The left table inside the left space should have the following columns # (order), Diagnosis, Type, Weight as MRDx, ALOS/ELOS, ELOS, Alternate HIG, Alternate MCC. The antd title inside the right space should have "Interventions" as its text. The antd table in the right space should have the following columns # (order), Intervention, Loc, Date. Above the left table we should have a label of diagnosis. The tables should have sorting available on every column. Please include some dummy data for all columns amounting to 3 rows for each table.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Below is a React component that meets your detailed specifications using Ant Design (antd) components. This example assumes you have already set up a React environment with Ant Design integrated. If not, you'll need to add Ant Design to your project (e.g., via npm install antd or yarn add antd) and import the CSS in your main file (e.g., import 'antd/dist/antd.css'; in your index.js or similar entry file).
Header Section: Uses an antd Space with a fixed height, full width, and centered text.
Case Information Section: Utilizes an antd Space for displaying key-value pairs in a clean, wrapped format.
Main Content Section:
Diagnoses Section (Left): Occupies 2/3 of the horizontal space. Includes a title, a label for the table, and an antd Table with sorting enabled for all columns.
Interventions Section (Right): Occupies 1/3 of the horizontal space. Features a title and an antd Table with sorting on all columns.
Dummy Data: Provided for both tables to demonstrate the component