Files
yaak/src-web/components/HttpRequestLayout.tsx
Gregory Schier d148a8384d Tiny fixes
2024-02-02 18:41:00 -08:00

24 lines
629 B
TypeScript

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
name="http_layout"
className="p-3 gap-1.5"
style={style}
leftSlot={({ orientation, style }) => (
<RequestPane style={style} fullHeight={orientation === 'horizontal'} />
)}
rightSlot={({ style }) => <ResponsePane style={style} />}
/>
);
}