Files
SCM-Manager/scm-ui/ui-components/src/MailLink.tsx

18 lines
297 B
TypeScript
Raw Normal View History

import React from "react";
type Props = {
address?: string;
};
class MailLink extends React.Component<Props> {
render() {
const { address } = this.props;
if (!address) {
return null;
}
return <a href={"mailto:" + address}>{address}</a>;
}
}
export default MailLink;