/** * Plugin to detect the Bitrix24 application environment. * * @description * 1. Analyzes the User-Agent on the server-side (SSR) or client-side. * 2. Establishes a reactive `platform` state using `useState`. * 3. Injects attributes into the `` tag for styling: * - `data-platform="bitrix-mobile" | "bitrix-desktop" | "web"` * - `data-version="XX" | "XX.X.XX.XX" | "air"` * * @example * // In CSS: * html[data-platform="bitrix-mobile"] .my-component { ... } * html[data-platform="bitrix-desktop"] .my-component { ... } * * @example * *