import { __experimentalVStack as VStack, __experimentalHStack as HStack, __experimentalText as Text, } from '@wordpress/components'; import { forwardRef } from 'react'; import type { ActionItemProps } from './types'; import './action-item.scss'; function UnforwardedActionItem( { title, description, decoration, actions }: ActionItemProps, ref: React.ForwardedRef< HTMLSpanElement > ) { return ( { !! decoration && { decoration } } { title } { description && ( { description } ) } { actions } ); } export const ActionItem = forwardRef( UnforwardedActionItem ); export default ActionItem;