mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-29 23:00:08 +02:00

Add bulk delete button to file tree toolbar GitOrigin-RevId: c857d8f5027eddb29b1ca324efe1a0e94ef4c28b
33 lines
737 B
TypeScript
33 lines
737 B
TypeScript
import OLTooltip from '@/features/ui/components/ol/ol-tooltip'
|
|
import MaterialIcon, {
|
|
AvailableUnfilledIcon,
|
|
} from '@/shared/components/material-icon'
|
|
import React from 'react'
|
|
|
|
export default function FileTreeActionButton({
|
|
id,
|
|
description,
|
|
onClick,
|
|
iconType,
|
|
}: {
|
|
id: string
|
|
description: string
|
|
onClick: () => void
|
|
iconType: AvailableUnfilledIcon
|
|
}) {
|
|
return (
|
|
<OLTooltip
|
|
id={id}
|
|
description={description}
|
|
overlayProps={{ placement: 'bottom' }}
|
|
>
|
|
<button className="btn file-tree-toolbar-action-button" onClick={onClick}>
|
|
<MaterialIcon
|
|
unfilled
|
|
type={iconType}
|
|
accessibilityLabel={description}
|
|
/>
|
|
</button>
|
|
</OLTooltip>
|
|
)
|
|
}
|