otterscan/src/ContentFrame.tsx
2022-08-06 23:32:08 -03:00

19 lines
424 B
TypeScript

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