diff --git a/src/components/Tooltip/index.tsx b/src/components/Tooltip/index.tsx index 9e19612157..8f52f1cdd4 100644 --- a/src/components/Tooltip/index.tsx +++ b/src/components/Tooltip/index.tsx @@ -294,7 +294,9 @@ function Bubble({ left: coords.left, }, ]}> - + ) } + +function oppposite(position: 'top' | 'bottom') { + switch (position) { + case 'top': + return 'center bottom' + case 'bottom': + return 'center top' + default: + return 'center' + } +}