refactor(chat): reuse fullscreen back button

This commit is contained in:
2026-07-14 16:54:26 +08:00
parent 81d6489978
commit df6bb663c1
3 changed files with 18 additions and 7 deletions
+2 -1
View File
@@ -8,7 +8,7 @@ interface BackButtonBaseProps {
ariaLabel?: string;
analyticsKey?: string;
iconSize?: number;
variant?: "floating" | "soft" | "ghost" | "dark";
variant?: "floating" | "soft" | "ghost" | "dark" | "unstyled";
}
type BackButtonLinkProps = BackButtonBaseProps & {
@@ -35,6 +35,7 @@ const VARIANT_CLASS_NAMES = {
"size-8 bg-transparent text-black hover:opacity-70 active:scale-96",
dark:
"size-(--responsive-icon-button-size,42px) border border-[rgba(255,255,255,0.12)] bg-[rgba(13,11,20,0.7)] text-white shadow-[0_10px_24px_rgba(0,0,0,0.2)] backdrop-blur-md hover:bg-[rgba(28,24,39,0.82)] active:scale-96",
unstyled: "",
} satisfies Record<NonNullable<BackButtonBaseProps["variant"]>, string>;
export function BackButton({