mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
* migrate booker layout selector * move schedule hooks and types * migrate feature opt in components * migrate feedback dialog * update * migrate schedule hooks * migrate useSegments * update * update import paths * fix import paths * mv useTimesForSchedule back to features * fix
30 lines
891 B
TypeScript
30 lines
891 B
TypeScript
"use client";
|
|
|
|
import { FeaturesSettings } from "~/feature-opt-in/components/FeaturesSettings";
|
|
import SettingsHeader from "@calcom/features/settings/appDir/SettingsHeader";
|
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
|
import type { ReactElement } from "react";
|
|
|
|
import { useTeamFeatureOptIn } from "~/feature-opt-in/hooks/useTeamFeatureOptIn";
|
|
|
|
interface TeamFeaturesViewProps {
|
|
teamId: number;
|
|
canEdit: boolean;
|
|
}
|
|
|
|
const TeamFeaturesView = ({ teamId, canEdit }: TeamFeaturesViewProps): ReactElement => {
|
|
const { t } = useLocale();
|
|
const featureOptIn = useTeamFeatureOptIn(teamId);
|
|
|
|
return (
|
|
<SettingsHeader
|
|
title={t("features")}
|
|
description={t("feature_opt_in_team_description")}
|
|
borderInShellHeader={true}>
|
|
<FeaturesSettings featureOptIn={featureOptIn} canEdit={canEdit} />
|
|
</SettingsHeader>
|
|
);
|
|
};
|
|
|
|
export default TeamFeaturesView;
|