Initial frontend for gRPC UI

This commit is contained in:
Gregory Schier
2024-01-30 16:43:54 -08:00
parent dbdce4cf9a
commit 5c44df7b00
16 changed files with 650 additions and 132 deletions

View File

@@ -0,0 +1,21 @@
import type { CSSProperties } from 'react';
import React from 'react';
import { SplitLayout } from './core/SplitLayout';
import { RequestPane } from './RequestPane';
import { ResponsePane } from './ResponsePane';
interface Props {
style: CSSProperties;
}
export function HttpRequestLayout({ style }: Props) {
return (
<SplitLayout
style={style}
leftSlot={({ orientation, style }) => (
<RequestPane style={style} fullHeight={orientation === 'horizontal'} />
)}
rightSlot={({ style }) => <ResponsePane style={style} />}
/>
);
}