fleet/frontend/components/MDM/AndroidLatestVersionWithTooltip/AndroidLatestVersionWithTooltip.tsx
Martin Angers 5a8e2774bf
Feature branch: Android Setup Experience support (#35951)
Feature branch for
https://github.com/fleetdm/fleet/issues/33761#issuecomment-3548996114


---------

Co-authored-by: RachelElysia <71795832+RachelElysia@users.noreply.github.com>
2025-12-02 12:27:20 -05:00

37 lines
1,008 B
TypeScript

import React from "react";
import CustomLink from "components/CustomLink";
import TooltipWrapper from "components/TooltipWrapper";
import { getPathWithQueryParams } from "utilities/url";
import { ANDROID_PLAY_STORE_URL } from "utilities/constants";
interface IAndroidLatestVersionWithTooltipProps {
androidPlayStoreId: string;
}
/** For Android Play Store apps version UI, we show "Latest" with tooltip
* which links to the apps' play store */
const AndroidLatestVersionWithTooltip = ({
androidPlayStoreId,
}: IAndroidLatestVersionWithTooltipProps) => {
return (
<TooltipWrapper
tipContent={
<span>
See latest version on the{" "}
<CustomLink
text="Play Store"
url={getPathWithQueryParams(ANDROID_PLAY_STORE_URL, {
id: androidPlayStoreId,
})}
newTab
/>
</span>
}
>
<span>Latest</span>
</TooltipWrapper>
);
};
export default AndroidLatestVersionWithTooltip;