* Re-engineer UI in TypeScript * Switch to named imports where possible * Restructure file system layout * Update depencencies * Update README.md * Change explicit colors for better support for dark theme
11 lines
326 B
TypeScript
11 lines
326 B
TypeScript
import { Theme } from "@material-ui/core";
|
|
import { APStatus } from "./types";
|
|
|
|
export const apStatusHighlight = ({ active }: APStatus, theme: Theme) => {
|
|
return active ? theme.palette.success.main : theme.palette.info.main;
|
|
}
|
|
|
|
export const apStatus = ({ active }: APStatus) => {
|
|
return active ? "Active" : "Inactive";
|
|
};
|