import { Button, Classes, H5, H6, Icon, 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 } from "."; import { QUALITATIVE_COLOR_SCHEME } from "../../constants"; import { IColorSchemeType } from "../../types"; import { capitalize } from "../../util"; const ColorSchemeSelect = Select.ofType(); const StyledLi = styled.li` margin-top: 2px; `; const StyledIcon = styled(Icon)` margin-right: 5px; `; 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