2024-02-22 12:14:58 +00:00
|
|
|
import { cn } from "~/lib/utils";
|
2024-02-18 21:14:41 +07:00
|
|
|
import React from "react";
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
children?: React.ReactNode;
|
2024-02-21 02:01:35 +07:00
|
|
|
className?: string;
|
2024-02-18 21:14:41 +07:00
|
|
|
};
|
|
|
|
|
2024-02-21 02:01:35 +07:00
|
|
|
const Panel = ({ children, className }: Props) => {
|
2024-02-18 21:14:41 +07:00
|
|
|
return (
|
2024-02-21 02:01:35 +07:00
|
|
|
<div className="bg-slate-800 w-full h-full flex-col items-stretch md:rounded-lg md:overflow-hidden flex">
|
|
|
|
<div className="gap-2 py-3 px-4 hidden md:flex">
|
2024-02-18 21:14:41 +07:00
|
|
|
<div className="bg-red-500 rounded-full h-3 w-3" />
|
|
|
|
<div className="bg-yellow-500 rounded-full h-3 w-3" />
|
|
|
|
<div className="bg-green-500 rounded-full h-3 w-3" />
|
|
|
|
</div>
|
2024-02-21 02:01:35 +07:00
|
|
|
<div className={cn("flex-1 overflow-hidden", className)}>{children}</div>
|
2024-02-18 21:14:41 +07:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Panel;
|