"""Info panel widget — callout box for tips, warnings, and explanations."""

from __future__ import annotations

from textual.widgets import Static


class InfoPanel(Static):
    """A callout box for tips, explanations, and important notes."""

    DEFAULT_CSS = ""

    def __init__(self, content: str, title: str = "Note") -> None:
        super().__init__()
        self._content = content
        self._title = title

    def on_mount(self) -> None:
        self.update(f"[bold yellow]{self._title}[/bold yellow]\n{self._content}")
