@yimingliao/cms 0.0.109 → 0.0.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +5 -5
- package/package.json +1 -1
package/dist/client/index.d.ts
CHANGED
|
@@ -373,10 +373,10 @@ declare function createI18nSelector({ enabled, locales, localeDisplay, }: {
|
|
|
373
373
|
localeDisplay: Record<string, string>;
|
|
374
374
|
}): () => react_jsx_runtime.JSX.Element | null;
|
|
375
375
|
|
|
376
|
-
declare function createSignOutButton(
|
|
376
|
+
declare function createSignOutButton({ useCommand, signOutAction, }: {
|
|
377
377
|
useCommand: ReturnType<typeof createUseCommand>;
|
|
378
378
|
signOutAction: ReturnType<typeof createSignOutAction>;
|
|
379
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
379
|
+
}): () => react_jsx_runtime.JSX.Element;
|
|
380
380
|
|
|
381
381
|
interface PageHeaderTitleProps {
|
|
382
382
|
icon?: LucideIcon;
|
package/dist/client/index.js
CHANGED
|
@@ -694,11 +694,11 @@ function createI18nSelector({
|
|
|
694
694
|
] });
|
|
695
695
|
};
|
|
696
696
|
}
|
|
697
|
-
function createSignOutButton(
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
697
|
+
function createSignOutButton({
|
|
698
|
+
useCommand,
|
|
699
|
+
signOutAction
|
|
700
|
+
}) {
|
|
701
|
+
return function SignOutButton() {
|
|
702
702
|
const { t } = useTranslator();
|
|
703
703
|
const router = useRouter();
|
|
704
704
|
const { setAdmin } = useAdmin();
|