diff --git a/src/components/Profile/Header/Share.module.css b/src/components/Profile/Header/Share.module.css new file mode 100644 index 000000000..b56b8b9ec --- /dev/null +++ b/src/components/Profile/Header/Share.module.css @@ -0,0 +1,3 @@ +.share { + padding: 10px; +} diff --git a/src/components/Profile/Header/Share.tsx b/src/components/Profile/Header/Share.tsx new file mode 100644 index 000000000..18ae2034f --- /dev/null +++ b/src/components/Profile/Header/Share.tsx @@ -0,0 +1,20 @@ +import React, { ReactElement } from 'react' +import styles from './Share.module.css' +import Button from '@shared/atoms/Button' + +export default function Share({ + accountId +}: { + accountId: string +}): ReactElement { + function copyLink() { + navigator.clipboard.writeText(window.location.href + '/' + accountId) + } + return ( +