import React from 'react'; import { Link } from 'react-router-dom'; import styles from './profile.scss'; function ProfileField({ label, value, warningMessage, link, onChange, }: { label?: React.ReactNode; link?: string; onChange?: () => void; value: React.ReactNode; warningMessage?: React.ReactNode; }) { let Action: React.ElementType | null = null; if (link) { Action = (props) => ; } if (onChange) { Action = (props) => ; } return (