* feat: wip Signed-off-by: Udit Takkar <[email protected]> * feat: add download recording button Signed-off-by: Udit Takkar <[email protected]> * moved video recording into /ee/, wrapped in LicenseRequired * fix: security issues in downloading recording updates designs Signed-off-by: Udit Takkar <[email protected]> * feat: add upgradation banner Signed-off-by: Udit Takkar <[email protected]> * chore: remove default room Signed-off-by: Udit Takkar <[email protected]> * chore: fix type error Signed-off-by: Udit Takkar <[email protected]> * fix: add type in get recording Signed-off-by: Udit Takkar <[email protected]> * fix: add suggestions and zod type for recording Signed-off-by: Udit Takkar <[email protected]> * fix: add types in getRecordings Signed-off-by: Udit Takkar <[email protected]> * fix: type error Signed-off-by: Udit Takkar <[email protected]> * fix: type error Signed-off-by: Udit Takkar <[email protected]> * fix: finally all type errors fixed Signed-off-by: Udit Takkar <[email protected]> * Server side validation for users in team plans for recordings * fix: remove any type Signed-off-by: Udit Takkar <[email protected]> * fix: type error Signed-off-by: Udit Takkar <[email protected]> Signed-off-by: Udit Takkar <[email protected]> Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Alan <[email protected]>
31 lines
982 B
TypeScript
31 lines
982 B
TypeScript
import { useRouter } from "next/router";
|
|
|
|
import { WEBAPP_URL } from "@calcom/lib/constants";
|
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
|
import { Icon, Button } from "@calcom/ui";
|
|
|
|
export default function UpgradeRecordingBanner() {
|
|
const { t } = useLocale();
|
|
const router = useRouter();
|
|
|
|
return (
|
|
<div className="flex items-start gap-2 rounded-md bg-gray-100 p-4">
|
|
<Icon.FiUsers className="dark:bg-gray-90 inline-block h-5 w-5" />
|
|
<div className="flex flex-col gap-4">
|
|
<div className="flex flex-col gap-2">
|
|
<h2 className="text-sm font-semibold">{t("upgrade_to_access_recordings_title")}</h2>
|
|
<p className="text-sm font-normal">{t("upgrade_to_access_recordings_description")}</p>
|
|
</div>
|
|
<div>
|
|
<Button
|
|
onClick={() => {
|
|
router.push(`${WEBAPP_URL}/teams`);
|
|
}}>
|
|
{t("upgrade_now")}
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|