Skip to content

Commit 9869872

Browse files
committed
Add a popup for the OpenTab signalling that the tab should be opened.
1 parent a2cadc6 commit 9869872

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/components/Badge.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ import { badgeCVA, typeColors, typeIcons } from '@/components/design'
66
import { CodePreview } from './BadgePopups/CodePreview'
77
import { ImagePreview } from './BadgePopups/ImagePreview'
88
import { LinkPreview } from './BadgePopups/LinkPreview'
9+
import { OpenTabPopup } from './BadgePopups/OpenTabPopup'
910
import { TextPreview } from './BadgePopups/TextPreview'
1011
import { TimePreview } from './BadgePopups/TimePreview'
1112

1213
const typePopups = {
1314
code: CodePreview,
1415
image: ImagePreview,
1516
link: LinkPreview,
17+
open: OpenTabPopup,
1618
text: TextPreview,
1719
time: TimePreview,
1820
} satisfies Partial<Record<keyof typeof typeIcons, () => JSX.Element>>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export function OpenTabPopup() {
2+
return (
3+
<>
4+
<p>Tab is already open.</p>
5+
<p>Click to activate.</p>
6+
</>
7+
)
8+
}

0 commit comments

Comments
 (0)