Spaces:
Running
Running
File size: 911 Bytes
23680f2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
"use client";
import { ReactNode } from "react";
import { cn } from "@/lib/utils";
interface PanelProps {
children: ReactNode;
className?: string;
}
/**
* Base panel container with consistent Rerun-style appearance.
* No borders or rounded corners - panels should be flush against each other.
*/
export function Panel({ children, className }: PanelProps) {
return (
<div className={cn(
"flex flex-col h-full bg-card overflow-hidden",
className
)}>
{children}
</div>
);
}
interface PanelFooterProps {
children: ReactNode;
className?: string;
}
/**
* Panel footer for keyboard shortcuts/hints.
*/
export function PanelFooter({ children, className }: PanelFooterProps) {
return (
<div className={cn(
"px-3 py-1 text-[11px] text-muted-foreground/70 border-t border-border bg-card font-mono",
className
)}>
{children}
</div>
);
}
|