'use client';
/**
* useSmartLink — turn a non-`` element (card, table row, list item)
* into a proper link.
*
* WHY:
* "Clickable cards" used to either nest an `` (which then can't
* contain other interactive children) or attach `onClick={navigate}`
* (which loses cmd-click, middle-click, keyboard, accessibility).
* This hook returns a small bag of handlers that gives a non-anchor
* element the right behavior in all those cases.
*
* Key behaviors:
* - Cmd/Ctrl+click and middle-click open in a new tab.
* - Plain click does SPA nav.
* - Enter / Space activate from keyboard.
* - Clicks inside nested `` / `