@plurid/plurid-ui-components-react
Version:
Plurid User Interface Components for React
49 lines (48 loc) • 1.49 kB
TypeScript
import React from 'react';
import { AnyAction } from '@reduxjs/toolkit';
import { StateOfAny, head } from '@plurid/plurid-ui-state-react';
export type HeadState = StateOfAny & {
head: head.HeadState;
};
export type HeadSelectors = StateOfAny & {
head: typeof head.selectors;
};
export interface HeadDefaults {
robots?: string;
viewport?: string;
faviconIcon?: string;
favicon16?: string;
favicon32?: string;
manifest?: string;
themeColor?: string;
apiDomain?: string;
canonicalURL?: string;
ogImageWidth?: string;
ogImageHeight?: string;
ogSiteName?: string;
appleTouchIcon?: string;
}
export interface HeadOwnProperties {
Helmet: any;
defaults?: Partial<head.HeadState> & HeadDefaults;
selectors: HeadSelectors;
context: React.Context<any>;
children?: React.ReactNode;
}
export interface HeadStateProperties {
stateHead: head.HeadState;
}
export interface HeadDispatchProperties {
}
export type HeadProperties = HeadOwnProperties & HeadStateProperties & HeadDispatchProperties;
declare const ConnectedHead: import("react-redux").ConnectedComponent<React.FC<HeadProperties>, {
context: React.Context<any>;
Helmet: any;
defaults?: (Partial<head.HeadState> & HeadDefaults) | undefined;
selectors: StateOfAny & {
head: typeof head.selectors;
};
children?: React.ReactNode;
store?: import("@reduxjs/toolkit").Store<any, AnyAction> | undefined;
}>;
export default ConnectedHead;