diff --git a/projects/website/src/components/country-flag.tsx b/projects/website/src/components/country-flag.tsx
index 723db2d..6b538a2 100644
--- a/projects/website/src/components/country-flag.tsx
+++ b/projects/website/src/components/country-flag.tsx
@@ -1,3 +1,6 @@
+import Tooltip from "@/components/tooltip";
+import { normalizedRegionName } from "@ssr/common/utils/region-utils";
+
type Props = {
code: string;
size?: number;
@@ -5,12 +8,14 @@ type Props = {
export default function CountryFlag({ code, size = 24 }: Props) {
return (
- // eslint-disable-next-line @next/next/no-img-element
-
+
0 ? "text-green-400" : "text-red-400"}`}>
{change > 0 ? "+" : ""}
{format(change)}
diff --git a/projects/website/src/components/tooltip.tsx b/projects/website/src/components/tooltip.tsx
index b7b8201..60f3da9 100644
--- a/projects/website/src/components/tooltip.tsx
+++ b/projects/website/src/components/tooltip.tsx
@@ -11,16 +11,21 @@ type Props = {
*/
display: React.ReactNode;
+ /**
+ * Display the trigger as a child element.
+ */
+ asChild?: boolean;
+
/**
* Where the tooltip will be displayed
*/
side?: "top" | "bottom" | "left" | "right";
};
-export default function Tooltip({ children, display, side = "top" }: Props) {
+export default function Tooltip({ children, display, asChild = true, side = "top" }: Props) {
return (