import { useContext, useState } from "react"; import styled from "styled-components"; import { StyledTooltip, defaultBorderRadius, lightGray, secondaryDark, } from "."; import { Trash, PaintBrush, MapPin } from "@styled-icons/heroicons-outline"; import { GUIClientContext } from "../App"; const Button = styled.button` border: none; color: white; background-color: ${secondaryDark}; border-radius: ${defaultBorderRadius}; padding: 8px; overflow: hidden; cursor: pointer; `; const GridDiv = styled.div` position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; display: grid; grid-gap: 0; grid-template-columns: 1fr 1fr; align-items: center; border-radius: ${defaultBorderRadius}; overflow: hidden; background-color: ${secondaryDark}; `; const ButtonDiv = styled.div<{ backgroundColor: string }>` background-color: ${secondaryDark}; padding: 3px; height: 100%; display: flex; align-items: center; &:hover { background-color: ${(props) => props.backgroundColor}; } `; interface PillButtonProps { onHover?: (arg0: boolean) => void; onDelete?: () => void; title: string; index: number; editing: boolean; pinned: boolean; } const PillButton = (props: PillButtonProps) => { const [isHovered, setIsHovered] = useState(false); const client = useContext(GUIClientContext); return ( <> {props.editing ? "Editing this range (with rest of file as context)" : "Edit this range"} Delete ); }; export default PillButton;