import { Button, H6, MenuItem } from "@blueprintjs/core"; import { IconNames } from "@blueprintjs/icons"; import { ItemRenderer, Select } from "@blueprintjs/select"; import * as React from "react"; import FloatingCard from "./FloatingCard"; interface ILayoutToDisplayName { [key: string]: string; } const layouts: ILayoutToDisplayName = { cola: "COLA", cose: "CoSE" }; const LayoutSelect = Select.ofType(); const LayoutItemRenderer: ItemRenderer = (layout, { handleClick, modifiers }) => ( ); interface IFloatingLayoutSelectProps { currentLayoutKey: string; onItemSelect: (layout: string) => void; startLayout: () => void; stopLayout: () => void; } export const FloatingLayoutSelect: React.FC = ({ currentLayoutKey, onItemSelect, startLayout, stopLayout }) => { return (
Layout