abstsracted away sequence node collections

added generic action updaters
This commit is contained in:
ari committed 2022-07-10 12:40:44 -04:00
1 parent d62c484f33
commit f549993d3e
18 files changed
+351 -217

No files matched your search

@@ -0,0 +1,16 @@
import { SequenceNodeColor } from "./types";
import { useTheme } from "@mui/material/styles";
export const useSequenceNodeColor = (color: SequenceNodeColor): string => {
const theme = useTheme();
return color === "blue"
? theme.palette.info.main
: color === "green"
? theme.palette.success.light
: color === "lblue"
? theme.palette.info.light
: color === "red"
? theme.palette.error.dark
: "none";
};