Files
calendar/apps/web/modules/settings/components/SettingsHeaderWithBackButton.tsx
T
Benny JooGitHubDevin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
b3430c8efc refactor: remove 10 trpc imports from features package by moving 16 tRPC-driven components to apps/web/modules (#27336)
* refactor: move Segment, BookerLayoutSelector, CreateLicenseKeyForm from packages/features to apps/web/modules

Co-Authored-By: benny@cal.com <sldisek783@gmail.com>

* fix: update relative imports to absolute paths in moved files

Co-Authored-By: benny@cal.com <sldisek783@gmail.com>

* refactor: move useBookingLocation and blocklist components from packages/features to apps/web/modules

Co-Authored-By: benny@cal.com <sldisek783@gmail.com>

* refactor: move EmbedTabs and embed hooks from packages/features to apps/web/modules

Co-Authored-By: benny@cal.com <sldisek783@gmail.com>

* fix

* migrate useBookerUrl

* migrate embed tabs

* fix

* fix

* fix

* mv ThemeLabel

* mv settings headers to webn

* update imports

* clean up

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-01-30 04:55:50 -03:00

24 lines
576 B
TypeScript

"use client";
import { useRouter } from "next/navigation";
import type { ReactNode } from "react";
import SettingsHeader from "./SettingsHeader";
type SettingsHeaderWithBackButtonProps = {
children: ReactNode;
title?: string;
description?: string;
CTA?: ReactNode;
ctaClassName?: string;
borderInShellHeader?: boolean;
};
export default function SettingsHeaderWithBackButton(props: SettingsHeaderWithBackButtonProps) {
const router = useRouter();
return (
<SettingsHeader {...props} backButton={true} onBackButtonClick={() => router.back()} />
);
}