2022-11-10 20:23:56 +00:00
|
|
|
import { TeamsListing } from "@calcom/features/ee/teams/components";
|
|
|
|
import { WEBAPP_URL } from "@calcom/lib/constants";
|
2022-09-17 17:53:31 +00:00
|
|
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
|
|
|
import { Icon } from "@calcom/ui/Icon";
|
2022-11-04 15:40:46 +00:00
|
|
|
import { Button } from "@calcom/ui/components/button";
|
2022-09-17 17:53:31 +00:00
|
|
|
import { Shell } from "@calcom/ui/v2";
|
|
|
|
|
|
|
|
function Teams() {
|
|
|
|
const { t } = useLocale();
|
|
|
|
return (
|
|
|
|
<Shell
|
|
|
|
heading={t("teams")}
|
|
|
|
subtitle={t("create_manage_teams_collaborative")}
|
|
|
|
CTA={
|
2022-11-10 20:23:56 +00:00
|
|
|
<Button type="button" href={`${WEBAPP_URL}/settings/teams/new`}>
|
2022-09-17 17:53:31 +00:00
|
|
|
<Icon.FiPlus className="inline-block h-3.5 w-3.5 text-white group-hover:text-black ltr:mr-2 rtl:ml-2" />
|
|
|
|
{t("new")}
|
|
|
|
</Button>
|
|
|
|
}>
|
2022-11-10 20:23:56 +00:00
|
|
|
<TeamsListing />
|
2022-09-17 17:53:31 +00:00
|
|
|
</Shell>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
Teams.requiresLicense = false;
|
|
|
|
|
|
|
|
export default Teams;
|