Rocky_Mountain_Vending/.pnpm-store/v10/files/7d/3dbf7cc0b6e4215af55ca39a8675b62869ee43a9ee73cb8199f69843d38983705cd12848a019af04ae49d43bc90dc7873b7300068f48ba9dd6d3b966134f26
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

13 lines
No EOL
365 B
Text

import getWindow from './isWindow';
import offset from './offset';
/**
* Returns the width of a given element.
*
* @param node the element
* @param client whether to use `clientWidth` if possible
*/
export default function getWidth(node, client) {
var win = getWindow(node);
return win ? win.innerWidth : client ? node.clientWidth : offset(node).width;
}