21 lines
591 B
TypeScript
Raw Normal View History

2024-02-18 21:14:41 +07:00
import React from "react";
type Props = {
children?: React.ReactNode;
};
const Panel = ({ children }: Props) => {
return (
2024-02-20 06:52:39 +00:00
<div className="bg-slate-800 rounded-lg w-full h-full flex flex-col items-stretch shadow-lg overflow-hidden">
<div className="flex gap-2 py-3 px-4">
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-20 06:52:39 +00:00
<div className="flex-1 overflow-hidden">{children}</div>
2024-02-18 21:14:41 +07:00
</div>
);
};
export default Panel;