Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
title: string;
size?: 'm' | 'l' | 'scale';
zIndex?: number;
children: React.ReactNode;
labelSecondary: Label;
labelPrimary: Label;
isPrimaryButtonDisabled?: boolean;
onSecondaryButtonClick: (event: React.SyntheticEvent) => void;
onPrimaryButtonClick: (event: React.SyntheticEvent) => void;
dataAttributesSecondaryButton?: { [key: string]: string };
dataAttributesPrimaryButton?: { [key: string]: string };
getParentSelector?: () => HTMLElement;
};
const defaultProps: Pick = {
labelSecondary: sharedMessages.cancel,
labelPrimary: sharedMessages.save,
};
const FormDialog = (props: Props) => (
{props.children}