Shared sidebar layout

This commit is contained in:
Gregory Schier
2026-03-12 14:19:29 -07:00
parent 87e60372fe
commit 47f0daabff
6 changed files with 200 additions and 141 deletions

View File

@@ -13,15 +13,16 @@ import classNames from 'classnames';
interface Props {
exchanges: HttpExchange[];
style?: React.CSSProperties;
className?: string;
}
export function ExchangesTable({ exchanges, style }: Props) {
export function ExchangesTable({ exchanges, style, className }: Props) {
if (exchanges.length === 0) {
return <p className="text-text-subtlest text-sm">No traffic yet</p>;
}
return (
<Table scrollable className="px-2" style={style}>
<Table scrollable className={classNames('px-2', className)} style={style}>
<TableHead>
<TableRow>
<TableHeaderCell>Method</TableHeaderCell>