) => void
onToggleExpand: () => void
groupAriaLabel: string
}
/** Delete + expand/collapse pair — single row so both icons share one vertical centerline. */
export function PropertiesCardActions({
removeLabel,
expandLabel,
expanded,
onRemove,
onToggleExpand,
groupAriaLabel,
}: PropertiesCardActionsProps) {
return (
{
event.stopPropagation()
onToggleExpand()
}}
/>
)
}
export type PropertiesCardIconActionProps = {
label: string
onClick: (event: React.MouseEvent) => void
className?: string
tipSide?: "top" | "bottom" | "left" | "right"
"aria-expanded"?: boolean
}
/** Single remove action (e.g. sort-card). */
export function PropertiesCardIconAction({
label,
onClick,
className,
tipSide = "left",
"aria-expanded": ariaExpanded,
}: PropertiesCardIconActionProps) {
return (
)
}