Files
OpenBB/website/src/components/Terminal.tsx
jose-donato 2e7eb4c9b6 New documentation website (#3526)
* fix(docs): added margin between sections

* feat: removed unused files; updated ga

* fix: juan stuff doesnt work

* fix: random fix

* moon at noon

* fix: update docusaurus config

* Update controller_doc_classes.py

* fix: temp fix

* fix: temp fix

* Update controller_doc_classes.py

* fix: remove old content

* fix: taggfix

* init

* fix: styling and moved file

* Update generate_terminal_markdown.py

* fix: removed unused images

* fix: port new files

* Update generate_sdk_markdown.py

* Update controller_doc_classes.py

Co-authored-by: teh_coderer <me@tehcoderer.com>
2022-11-22 16:47:03 +00:00

34 lines
1.0 KiB
TypeScript
Vendored

import React from "react";
import type { ReactElement } from "react";
import clsx from "clsx";
export default function Terminal({
extraClassnames = "",
rootClassnames = "",
children,
}: {
children: JSX.Element | JSX.Element[];
extraClassnames?: string;
rootClassnames?: string;
}) {
return (
<div className={rootClassnames}>
<div className="flex h-6 w-full items-center justify-between rounded-t-lg border-b bg-grey-100 dark:bg-white px-4 md:h-8">
<div className="flex h-full items-center gap-x-2">
<div className="h-2 w-2 rounded-full bg-grey-400 md:h-3 md:w-3" />
<div className="h-2 w-2 rounded-full bg-grey-400 md:h-3 md:w-3" />
<div className="h-2 w-2 rounded-full bg-grey-400 md:h-3 md:w-3" />
</div>
</div>
<div
className={clsx(
"rounded-b-lg border-b-2 border-l-2 border-r-2 border-grey-100 dark:border-white bg-black dark:text-white",
extraClassnames
)}
>
{children}
</div>
</div>
);
}