aboutsummaryrefslogtreecommitdiffstats
path: root/components/Social/Social.tsx
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2023-10-11 22:43:16 +0300
committerJan Tuomi <jans.tuomi@gmail.com>2023-10-11 22:43:16 +0300
commit873e0766f31dd427f52f0d51477ec71173eed5fa (patch)
tree36c1da490ead0313d7ae4507cfbfcec307ac2472 /components/Social/Social.tsx
parent67e51c634252a08c58decda1a4527911089361af (diff)
Rewrite in htmx + flask
Diffstat (limited to 'components/Social/Social.tsx')
-rw-r--r--components/Social/Social.tsx45
1 files changed, 0 insertions, 45 deletions
diff --git a/components/Social/Social.tsx b/components/Social/Social.tsx
deleted file mode 100644
index f663f6e..0000000
--- a/components/Social/Social.tsx
+++ /dev/null
@@ -1,45 +0,0 @@
-import styles from "./Social.module.css";
-
-export type SocialType = "telegram" | "linkedin" | "github";
-
-interface Props {
- type: SocialType;
-}
-
-interface TypeItem {
- alt: string;
- src: string;
- href: string;
-}
-
-const typeMap: Record<SocialType, TypeItem> = {
- telegram: {
- alt: "Telegram",
- src: "/social/telegram.svg",
- href: "https://t.me/kal_jan",
- },
- linkedin: {
- alt: "LinkedIn",
- src: "/social/linkedin.svg",
- href: "https://www.linkedin.com/in/jantuomi/",
- },
- github: {
- alt: "GitHub",
- src: "/social/github.svg",
- href: "http://github.com/jantuomi"
- },
-};
-
-const Social = ({ type }: Props): JSX.Element => {
- const typeItem = typeMap[type];
-
- return (
- <a className={styles.social} target="blank" rel="noopener noreferrer" href={typeItem.href}>
- <img src={typeItem.src} alt={typeItem.alt} />
- </a>
- );
-};
-
-
-
-export default Social;