UNPKG

@roam-garden/landscaping-toolbox

Version:

Common UI things for Roam Garden management

16 lines (15 loc) 663 B
import { AmplifyAuthenticator } from "@aws-amplify/ui-react"; import React, { ComponentPropsWithRef, ComponentType } from 'react'; export declare const signUpWithUsernameFields: ({ type: string; label: string; } | { type: string; label?: undefined; })[]; /** * Mostly replicating withAuthenticator from amplify lib, but with custom fields. * Haven't found an easier way. If I just wrap component - something weird happens to styling */ export declare function withAuth(Component: ComponentType, authenticatorProps?: ComponentPropsWithRef<typeof AmplifyAuthenticator>): React.FunctionComponent<{}>; export declare function useGetUser(): string;