refactor: extract contact links to shared config

This commit is contained in:
Ilia Mashkov
2026-04-24 10:07:25 +03:00
parent fce4672218
commit f3b4e1d064
4 changed files with 30 additions and 7 deletions
+5 -5
View File
@@ -1,7 +1,7 @@
'use client';
import { useEffect, useState } from 'react';
import { cn } from '$shared/lib';
import { CONTACT_LINKS, cn } from '$shared/lib';
import type { NavItem } from '../model/types';
interface Props {
@@ -85,16 +85,16 @@ export function SidebarNav({ items }: Props) {
<div className="mt-12 pt-12 brutal-border-top">
<p className="text-sm uppercase tracking-wider mb-4 opacity-60">Quick Links</p>
<div className="space-y-3">
<a href="mailto:hello@allmy.work" className="block">
<a href={`mailto:${CONTACT_LINKS.email}`} className="block">
Email
</a>
<a href="https://linkedin.com" className="block">
<a href={CONTACT_LINKS.linkedin} className="block">
LinkedIn
</a>
<a href="https://instagram.com" className="block">
<a href={CONTACT_LINKS.instagram} className="block">
Instagram
</a>
<a href="https://are.na" className="block">
<a href={CONTACT_LINKS.arena} className="block">
Are.na
</a>
</div>