import { Button, Classes, H5, H6, MenuItem } from "@blueprintjs/core"; import { IconNames } from "@blueprintjs/icons"; import { ItemRenderer, Select } from "@blueprintjs/select"; import React from "react"; import styled from "styled-components"; import { FloatingCard, InstanceType } from "."; import { IColorSchemeType } from "../../types"; const ColorSchemeSelect = Select.ofType(); const StyledLi = styled.li` margin-top: 2px; `; const StyledKeyContainer = styled.div` margin-top: 10px; `; interface IGraphKeyProps { current?: IColorSchemeType; colorSchemes: IColorSchemeType[]; onItemSelect: (colorScheme?: IColorSchemeType) => void; } const GraphKey: React.FC = ({ current, colorSchemes, onItemSelect }) => { const unsetColorScheme = () => { onItemSelect(undefined); }; return (
Color coding