otterscan/src/ContentFrame.tsx

19 lines
424 B
TypeScript
Raw Normal View History

2022-08-07 02:32:08 +00:00
import React, { PropsWithChildren } from "react";
2021-07-01 18:21:40 +00:00
type ContentFrameProps = {
tabs?: boolean;
};
2022-08-07 02:32:08 +00:00
const ContentFrame: React.FC<PropsWithChildren<ContentFrameProps>> = ({
tabs,
children,
}) => {
2021-07-01 18:21:40 +00:00
return tabs ? (
<div className="divide-y border rounded-b-lg px-3 bg-white">{children}</div>
) : (
<div className="divide-y border rounded-lg px-3 bg-white">{children}</div>
);
};
export default ContentFrame;