@teamsnap/teamsnap-ui
Version:
a CSS component library for TeamSnap
29 lines (28 loc) • 1.08 kB
TypeScript
import * as React from "react";
import * as PropTypes from "prop-types";
interface State {
isPopupOpen: boolean;
isConfirmOpen: boolean;
selectedAction: any;
}
export default class PopUpAction extends React.Component<PropTypes.InferProps<typeof PopUpAction.propTypes>, State> {
static propTypes: {
text: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
actions: PropTypes.Requireable<PropTypes.InferProps<{
text: PropTypes.Validator<string>;
callback: PropTypes.Validator<(...args: any[]) => any>;
requiresConfirmation: PropTypes.Requireable<boolean>;
confirmationText: PropTypes.Requireable<string | PropTypes.ReactElementLike>;
}>[]>;
popupStyle: PropTypes.Requireable<object>;
direction: PropTypes.Requireable<string[]>;
};
constructor(props: any);
componentDidMount(): void;
componentWillUnmount(): void;
handleBodyClick(): void;
togglePopup(): void;
handleActionClick(action: any): void;
render(): JSX.Element;
}
export {};