import { ArrowDownSmallIcon } from '@blocksuite/icons/rc'; import type { ButtonHTMLAttributes, MouseEventHandler } from 'react'; import { forwardRef } from 'react'; import * as styles from './styles.css'; type DropdownButtonProps = { size?: 'small' | 'default'; onClickDropDown?: MouseEventHandler; } & ButtonHTMLAttributes; export const DropdownButton = forwardRef< HTMLButtonElement, DropdownButtonProps >(({ onClickDropDown, children, size = 'default', ...props }, ref) => { const handleClickDropDown: MouseEventHandler = e => { e.stopPropagation(); onClickDropDown?.(e); }; return ( ); }); DropdownButton.displayName = 'DropdownButton';