Raw
1 import { TaxExclusive, TaxInclusive } from "@medusajs/icons";
2 import { Tooltip } from "@medusajs/ui";
3
4 type IncludesTaxTooltipProps = {
5 includesTax?: boolean;
6 };
7
8 export const IncludesTaxTooltip = ({
9 includesTax,
10 }: IncludesTaxTooltipProps) => {
11 return (
12 <Tooltip
13 maxWidth={999}
14 content={includesTax ? "Includes Tax" : "Excludes Tax"}
15 >
16 {includesTax ? (
17 <TaxInclusive className="text-ui-fg-muted shrink-0" />
18 ) : (
19 <TaxExclusive className="text-ui-fg-muted shrink-0" />
20 )}
21 </Tooltip>
22 );
23 };