From c3c90d575182d64b0e679e8da81a6d4f3559cf1f Mon Sep 17 00:00:00 2001 From: Maksymilian Jopek Date: Tue, 28 Mar 2023 19:26:30 +0200 Subject: Working app --- components/Avatar.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 components/Avatar.js (limited to 'components') diff --git a/components/Avatar.js b/components/Avatar.js new file mode 100644 index 0000000..d008116 --- /dev/null +++ b/components/Avatar.js @@ -0,0 +1,20 @@ +import Link from 'next/link'; +import styles from '../styles/Avatar.module.css' + +export default function Avatar(props) { + let id; + if (props.full) { + id =

{props.data.id}

; + } else { + id =

{props.data.id}

; + } + return ( +
+ {id} +

{props.data.name}

+

{props.data.title}

+
{props.full ? props.data.description : null}
+ +
+ ); +} -- cgit v1.3.1