import { Link } from '@/components/Link/Link'; import { Tags } from '@/components/Tags/Tags'; import { useProtopro } from '@/hooks/atproto'; import type { JSX } from 'react'; import { Heading } from '../Heading/Heading'; import { Paragraph } from '../Paragraph/Paragraph'; import { CONNECT_LINKS, PROFILE, SECTIONS } from './TLDRProfile.constants'; import * as styles from './TLDRProfile.styles'; /** * TL;DR Profile sidebar component * * @returns JSX element with profile photo and summary information */ export default function TLDRProfile(): JSX.Element { const { data: profile } = useProtopro(); return (
{PROFILE.name}
{PROFILE.name} {PROFILE.location} {profile?.overview || PROFILE.title} {/* {PROFILE.experience} */}
{profile?.skills && profile.skills.length > 0 && (
{SECTIONS.skills}
)} {profile?.languages && profile.languages.length > 0 && (
{SECTIONS.languages} lang.code) .sort() .join(', ')} className="flex-wrap" />
)}
{SECTIONS.connect}
{CONNECT_LINKS.map((link) => ( {link.label} ))}
); }