otterscan/src/ContentFrame.tsx
2021-07-01 15:47:23 -03:00

16 lines
377 B
TypeScript

import React from "react";
type ContentFrameProps = {
tabs?: boolean;
};
const ContentFrame: React.FC<ContentFrameProps> = ({ tabs, children }) => {
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;