\n
\n {existingPerson && (\n
\n Is this the person you're looking for? \n {}}\n />\n \n \n )}\n {!existingPerson && (\n <>\n
\n handleChange(e)}\n >\n First Name \n
\n
\n handleChange(e)}\n >\n Last Name \n
\n
\n handleChange(e)}\n >\n Email \n
\n {showDetails && (\n <>\n
setShowDetails(false)}\n onKeyDown={() => setShowDetails(false)}\n role=\"button\"\n tabIndex={0}\n >\n Hide Details\n \n
\n
\n
US Mailing Address \n
\n \n Address Line 1 \n
\n
\n \n Address Line 2 \n
\n
\n \n City \n
\n
\n \n State \n
\n
\n \n Zip Code \n
\n >\n )}\n {loading && (\n
\n )}\n
\n
\n
createPerson()}\n style={{\n border: `1px solid ${blue}`,\n width: \"6rem\",\n marginLeft: \"auto\",\n gridColumn: 2\n }}\n >\n Save\n \n
\n >\n )}\n
\n )}\n >\n );\n}\n\nOrganizationPersonForm.propTypes = {\n organizationId: PropTypes.string,\n updateParentObject: PropTypes.func\n};\n","import React, { useEffect } from \"react\"\n\nexport function useDeprecated(component, message) {\n useEffect(() => {\n if (process.env.NODE_ENV === 'development') {\n console.warn(`${component.name} has been deprecated.`, message)\n }\n })\n}","import React from \"react\";\nimport styled from \"styled-components\";\n\nconst Container = styled.div`\n @import url(\"https://fonts.googleapis.com/css2?family=Inter&display=swap\");\n\n margin: 1rem;\n height: fit-content;\n max-width: 500px;\n box-shadow: 0px 1px 2px #e8e8e8;\n background-color: #ffffff;\n border-left: 3px;\n border-radius: 4px;\n display: inline-flex;\n animation: grow 0.5s ease-in forwards;\n font-family: \"Inter\";\n`;\n\nconst Rectangle = styled.div`\n height: auto;\n width: 4px;\n border-radius: 4px;\n background-color: ${props => props.color};\n`;\n\nconst Icon = styled.i`\n align-self: center;\n font-size: 30px;\n margin-right: 1rem;\n color: ${props => props.color};\n`;\n\nconst Message = styled.div`\n width: fit-content;\n font-size: 18px;\n align-self: center;\n`;\n\nconst Info = styled.div`\n display: inline-flex;\n font-size: 16px;\n padding: 1rem;\n line-height: 20px;\n`;\n\nexport default function AlertTemplate({ options, message }) {\n let color;\n let icon;\n\n switch (options.type) {\n case \"error\":\n color = \"#FF5C5C\";\n icon = \"far fa-exclamation-circle\";\n break;\n case \"success\":\n color = \"#41CD7E\";\n icon = \"far fa-check-circle\";\n break;\n default:\n color = \"#2680FA\";\n icon = \"fas fa-arrow-alt-circle-right\";\n }\n\n return (\n