mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 02:32:55 +02:00
FACTIONS: Add "Rumors" system for learning about faction join requirements (#888)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import { CheckBox, CheckBoxOutlineBlank } from "@mui/icons-material";
|
||||
import { Typography } from "@mui/material";
|
||||
import React from "react";
|
||||
import { Settings } from "../../Settings/Settings";
|
||||
|
||||
Settings.theme.primary;
|
||||
|
||||
export interface IReqProps {
|
||||
value: string;
|
||||
color?: string;
|
||||
incompleteColor?: string;
|
||||
fulfilled: boolean;
|
||||
}
|
||||
|
||||
export const Requirement = (props: IReqProps): React.ReactElement => {
|
||||
const completeColor = props.color || Settings.theme.primary;
|
||||
const incompleteColor = props.incompleteColor || Settings.theme.primarydark;
|
||||
|
||||
return (
|
||||
<Typography
|
||||
sx={{ display: "flex", alignItems: "center", color: props.fulfilled ? completeColor : incompleteColor }}
|
||||
>
|
||||
{props.fulfilled ? <CheckBox sx={{ mr: 1 }} /> : <CheckBoxOutlineBlank sx={{ mr: 1 }} />}
|
||||
{props.value}
|
||||
</Typography>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user