51 lines
1.2 KiB
TypeScript
51 lines
1.2 KiB
TypeScript
import type { ReactNode } from "react";
|
|
|
|
export type RemoteAppHeaderProps = {
|
|
logoSrc?: string;
|
|
logoAlt?: string;
|
|
title?: ReactNode;
|
|
description?: ReactNode;
|
|
biLogoSrc?: string;
|
|
biLogoAlt?: string;
|
|
biText?: string;
|
|
showBi?: boolean;
|
|
extraLogoSrc?: string;
|
|
extraLogoAlt?: string;
|
|
extraText?: string;
|
|
showExtra?: boolean;
|
|
bg?: string;
|
|
/** @deprecated Use `bg` instead. Kept temporarily for backward compatibility. */
|
|
backgroundColor?: string;
|
|
dir?: "rtl" | "ltr" | "auto";
|
|
children?: ReactNode;
|
|
};
|
|
|
|
type AppHeaderSlotProps = {
|
|
children?: ReactNode;
|
|
[key: string]: any;
|
|
};
|
|
|
|
export const AppHeader: ((props: RemoteAppHeaderProps) => any) & {
|
|
BrandSection: (props: AppHeaderSlotProps) => any;
|
|
Logo: (props: AppHeaderSlotProps & { src?: string; alt?: string }) => any;
|
|
Brand: (props: AppHeaderSlotProps) => any;
|
|
Title: (props: AppHeaderSlotProps) => any;
|
|
Description: (props: AppHeaderSlotProps) => any;
|
|
Extra: (
|
|
props: AppHeaderSlotProps & {
|
|
logoSrc?: string;
|
|
src?: string;
|
|
alt?: string;
|
|
text?: string;
|
|
},
|
|
) => any;
|
|
Bi: (
|
|
props: AppHeaderSlotProps & {
|
|
logoSrc?: string;
|
|
src?: string;
|
|
alt?: string;
|
|
text?: string;
|
|
},
|
|
) => any;
|
|
};
|