hide bubble for event content

This commit is contained in:
Ajay Bura 2025-09-14 22:00:15 +05:30
parent 622e67d565
commit 3b89ecebf0
3 changed files with 18 additions and 9 deletions

View file

@ -5,22 +5,27 @@ import * as css from './layout.css';
type BubbleLayoutProps = {
self?: boolean;
hideBubble?: boolean;
before?: ReactNode;
};
export const BubbleLayout = as<'div', BubbleLayoutProps>(
({ self, before, children, ...props }, ref) => (
({ self, hideBubble, before, children, ...props }, ref) => (
<Box direction={self ? 'RowReverse' : 'Row'} gap="300" {...props} ref={ref}>
<Box className={css.BubbleBefore} shrink="No">
{before}
</Box>
<Box
className={classNames(
css.BubbleContent,
before ? css.BubbleContentArrow : undefined,
before && self ? css.BubbleContentArrowRight : undefined,
before && !self ? css.BubbleContentArrowLeft : undefined
)}
className={
hideBubble
? undefined
: classNames(
css.BubbleContent,
before ? css.BubbleContentArrow : undefined,
before && self ? css.BubbleContentArrowRight : undefined,
before && !self ? css.BubbleContentArrowLeft : undefined
)
}
direction="Column"
>
{children}