import { useState } from "react"; import { useTranslation } from "react-i18next"; import { Info } from "lucide-react"; import { PopoverSurface } from "./ui/AnchoredPopover"; import { useAnchoredPopover } from "./ui/anchoredPopoverHooks"; import { Button } from "./ui/Button"; import { SURFACE } from "./ui/surfaces"; // The playlists module shows fewer lists than youtube.com does, and without a word about it that // reads as Siftlode being broken (the owner's ask, 2026-09-03: say it is YouTube's API, up front). // Three facts, behind one quiet line at the foot of the rail — the owner's pick from the S7 mockups // (2026-09-19): always there to find again, never in the way. export default function PlaylistLimitsHint() { const { t } = useTranslation(); const [open, setOpen] = useState(false); const pop = useAnchoredPopover({ open, onOpenChange: setOpen, mode: "dialog", role: "dialog", placement: "right-end", offset: 8, }); const { setPositionReference, setReference } = pop.refs; return ( // The panel is placed off the whole row, not the "Why?" button: off the button it opened // over the right third of the rail and covered the lists (measured on localdev).
{t("playlists.limits.title")}