"""
Persistent reply keyboards for the admin panel.
These keyboards sit at the bottom of the chat when an admin is active.

Labels in Persian (فارسی).

Buttons are CLASSIC plain-text reply buttons — emojis come from the shared
list in utils/emojis.py via ``get_plain_emoji()``.
"""

from aiogram.types import ReplyKeyboardMarkup, KeyboardButton
from utils.emojis import get_plain_emoji


def admin_reply_kb() -> ReplyKeyboardMarkup:
    """Admin reply keyboard — shown when an admin enters the panel.

    Buttons:
        ⚙️ ورود به پنل مدیریت  — opens the inline admin dashboard
        🛒 بازگشت به منوی اصلی — returns to the normal user keyboard
    """
    return ReplyKeyboardMarkup(
        keyboard=[
            [
                KeyboardButton(
                    text=f"{get_plain_emoji('gear')} ورود به پنل مدیریت",
                ),
            ],
            [
                KeyboardButton(
                    text=f"{get_plain_emoji('cart')} بازگشت به منوی اصلی",
                ),
            ],
        ],
        resize_keyboard=True,
        persistent=True,
    )