from typing import Optional


def notion_text(text: Optional[str]) -> dict:
    """
    Returns a Notion-friendly version of the text.
    Args:
        text: The text to be formatted.
    Returns:
        A Notion-friendly version of the text.
    """
    content = '' if text is None else text

    return {
        "rich_text": [{
            "text": {
                "content": content
            }
        }]
    }