2022-11-10 20:23:56 +00:00
|
|
|
import { TeamsListing } from "@calcom/features/ee/teams/components";
|
2023-01-10 15:39:29 +00:00
|
|
|
import Shell from "@calcom/features/shell/Shell";
|
2022-11-10 20:23:56 +00:00
|
|
|
import { WEBAPP_URL } from "@calcom/lib/constants";
|
2022-09-17 17:53:31 +00:00
|
|
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
2023-01-23 23:08:01 +00:00
|
|
|
import { Button } from "@calcom/ui";
|
|
|
|
import { FiPlus } from "@calcom/ui/components/icon";
|
2022-09-17 17:53:31 +00:00
|
|
|
|
|
|
|
function Teams() {
|
|
|
|
const { t } = useLocale();
|
|
|
|
return (
|
|
|
|
<Shell
|
|
|
|
heading={t("teams")}
|
|
|
|
subtitle={t("create_manage_teams_collaborative")}
|
|
|
|
CTA={
|
2023-01-02 08:28:12 +00:00
|
|
|
<Button
|
2023-01-19 14:55:32 +00:00
|
|
|
variant="fab"
|
2023-01-23 23:08:01 +00:00
|
|
|
StartIcon={FiPlus}
|
2023-01-02 08:28:12 +00:00
|
|
|
type="button"
|
2023-01-05 19:55:55 +00:00
|
|
|
href={`${WEBAPP_URL}/settings/teams/new?returnTo=${WEBAPP_URL}/teams`}>
|
2022-09-17 17:53:31 +00:00
|
|
|
{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;
|