import { useState } from 'react' import { Box, SpanBox } from '../../elements/LayoutPrimitives' import { LibraryItemNode } from '../../../lib/networking/queries/useGetLibraryItemsQuery' import { LinkedItemCardAction } from './CardTypes' import { Button } from '../../elements/Button' import { theme } from '../../tokens/stitches.config' import { ArchiveBox, DotsThree, Notebook, Tag, Trash, Tray, } from 'phosphor-react' import { CardMenu } from '../CardMenu' import { UserBasicData } from '../../../lib/networking/queries/useGetViewerQuery' type LibraryHoverActionsProps = { viewer: UserBasicData isHovered: boolean item: LibraryItemNode handleAction: (action: LinkedItemCardAction) => void } export const LibraryHoverActions = (props: LibraryHoverActionsProps) => { const [menuOpen, setMenuOpen] = useState(false) return ( setMenuOpen(open)} actionHandler={props.handleAction} triggerElement={ } /> ) }