{
- e.stopPropagation()
- onArchive()
- }}
- onKeyDown={(e): void => {
- if (e.key === 'Enter' || e.key === ' ') {
- e.preventDefault()
+ {!isEditing && (
+
{
e.stopPropagation()
onArchive()
- }
- }}
- className={cn(
- 'shrink-0 cursor-pointer rounded p-0.5 transition-opacity duration-150',
- 'hover:bg-muted active:bg-muted',
- isHovered ? 'opacity-50 hover:opacity-100' : 'opacity-0'
- )}
- >
-
-
+ }}
+ onKeyDown={(e): void => {
+ if (e.key === 'Enter' || e.key === ' ') {
+ e.preventDefault()
+ e.stopPropagation()
+ onArchive()
+ }
+ }}
+ className={cn(
+ 'shrink-0 cursor-pointer rounded p-0.5 transition-opacity duration-150',
+ 'hover:bg-muted active:bg-muted',
+ isHovered ? 'opacity-50 hover:opacity-100' : 'opacity-0'
+ )}
+ >
+
+
+ )}