);
}
-
-export function TipBanner() {
- const { t } = useLocale();
- const [animationRef] = useAutoAnimate
();
-
- const bannerTips = [
- {
- id: 1,
- img: "/team-banner-background-small.jpg",
- title: t("calcom_is_better_with_team"),
- subtitle: t("add_your_team_members"),
- href: `${WEBAPP_URL}/settings/teams/new`,
- learnMoreHref: "https://go.cal.com/teams-video",
- },
- ];
- const { list, handleRemoveItem } = useLocalList("removedBannerIds", bannerTips);
-
- return (
-
- {list.map((tip) => {
- return (
-
-
-
{tip.title}
-
{tip.subtitle}
-
-
- {tip.learnMoreHref && (
-
- )}
-
-
-
-
- );
- })}
-
- );
-}
diff --git a/packages/ui/v2/modules/tips/index.ts b/packages/ui/v2/modules/tips/index.ts
new file mode 100644
index 0000000000..a9d8373d86
--- /dev/null
+++ b/packages/ui/v2/modules/tips/index.ts
@@ -0,0 +1 @@
+export { default as Tips } from "./Tips";