mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-10-23 18:23:15 +02:00
12 lines
259 B
TypeScript
12 lines
259 B
TypeScript
|
import React from "react";
|
||
|
|
||
|
interface IProps {
|
||
|
children: React.ReactNode;
|
||
|
content: React.ReactNode;
|
||
|
}
|
||
|
|
||
|
export function BypassWrapper(props: IProps): React.ReactElement {
|
||
|
if (!props.content) return <>{props.children}</>;
|
||
|
return <>{props.content}</>;
|
||
|
}
|