fix(home): annotate getVisitName as internal utility

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2023-10-02 13:25:43 +02:00
parent d65cb238e8
commit e10a5eaae5
2 changed files with 2 additions and 11 deletions
-9
View File
@@ -101,15 +101,6 @@ export type CustomHomepageGridProps = {
preventCollision?: boolean;
};
// @public
export const getVisitName: ({
rootPath,
document,
}?: {
rootPath?: string | undefined;
document?: Document | undefined;
}) => ({ pathname }: { pathname: string }) => string;
// @public
export const HeaderWorldClock: (props: {
clockConfigs: ClockConfig[];
@@ -52,11 +52,11 @@ const getToEntityRef =
};
/**
* @public
* @internal
* This function returns an implementation of visitName which is responsible
* for receiving a pathname and returning a string (name).
*/
export const getVisitName =
const getVisitName =
({ rootPath = 'catalog', document = global.document } = {}) =>
({ pathname }: { pathname: string }) => {
// If it is a catalog entity, get the name from the path