import { ReactNode } from 'react'

import { AvatarProps } from '../avatar'
import { SystemProps } from '../system'
import { ThemingProps } from '../theme'

export type MessageProps = SystemProps &
  ThemingProps<'Message'> & {
    /** Displays given text if no children are provided. */
    text?: ReactNode
    /** If provided, it shows the avatar instead of the status icon */
    avatar?: AvatarProps
  }
