import { ActionDisplayProps } from '@/action-menu/actions/display/components/ActionDisplay'; import { getActionLabel } from '@/action-menu/utils/getActionLabel'; import styled from '@emotion/styled'; import { isDefined } from 'twenty-shared/utils'; import { AppTooltip, TooltipDelay, TooltipPosition } from 'twenty-ui/display'; import { Button, IconButton } from 'twenty-ui/input'; const StyledWrapper = styled.div` font-size: ${({ theme }) => theme.font.size.md}; `; export const ActionButton = ({ action, onClick, to, }: { action: ActionDisplayProps; onClick?: (event?: React.MouseEvent) => void; to?: string; }) => { const label = getActionLabel(action.label); const shortLabel = isDefined(action.shortLabel) ? getActionLabel(action.shortLabel) : undefined; return ( <> {action.shortLabel ? (