diff --git a/packages/status-react/src/components/reaction-popover/index.tsx b/packages/status-react/src/components/reaction-popover/index.tsx new file mode 100644 index 00000000..b89933cd --- /dev/null +++ b/packages/status-react/src/components/reaction-popover/index.tsx @@ -0,0 +1,90 @@ +import React from 'react' + +import { styled } from '~/src/styles/config' +import { Flex, Image, Popover, PopoverTrigger } from '~/src/system' + +interface Props { + children: React.ReactElement + onClick: (emoji: string) => void + open?: boolean + onOpenChange?: (open: boolean) => void +} + +export const ReactionPopover = (props: Props) => { + const { children, onClick, ...popoverProps } = props + + return ( + + {children} + + + + + + + + + + + + ) +} + +const Button = styled('button', { + width: 40, + height: 40, + display: 'inline-flex', + alignItems: 'center', + justifyContent: 'center', + flexShrink: 0, + borderRadius: '$2', + + '&:hover': { + background: '$accent-8', + }, + + variants: { + active: { + true: { + border: '1px solid $primary-1', + background: '$primary-3', + }, + }, + }, +})