import { isAndroid } from '../../lib/deviceType' import { styled, theme } from '../tokens/stitches.config' import { Button } from '../elements/Button' import { HStack, Box } from '../elements/LayoutPrimitives' import { Circle, CheckCircle } from '@phosphor-icons/react' import { LabelIcon } from '../elements/icons/LabelIcon' import { NotebookIcon } from '../elements/icons/NotebookIcon' import { highlightColor, highlightColors } from '../../lib/themeUpdater' import { useState } from 'react' import { CopyIcon } from '../elements/icons/CopyIcon' type PageCoordinates = { pageX: number pageY: number } export type HighlightAction = | 'delete' | 'create' | 'comment' | 'share' | 'post' | 'unshare' | 'setHighlightLabels' | 'copy' | 'updateColor' type HighlightBarProps = { anchorCoordinates: PageCoordinates isNewHighlight: boolean isSharedToFeed: boolean displayAtBottom: boolean highlightColor?: string handleButtonClick: (action: HighlightAction, param?: string) => void } export function HighlightBar(props: HighlightBarProps): JSX.Element { return ( ) } const Separator = styled('div', { width: '1px', height: '20px', mx: '5px', background: '$thHighlightBar', }) function BarContent(props: HighlightBarProps): JSX.Element { const [hovered, setHovered] = useState(undefined) const size = props.displayAtBottom ? 35 : 25 return ( {highlightColors.map((color) => { return ( ) })} {!props.isNewHighlight && ( <> )} ) }