* 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>
24 lines
576 B
TypeScript
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()} />
|
|
);
|
|
}
|