import Link from "next/link"; import Image from "next/image"; export default function IdentityCard({ title, info, url, src, alt, src2, alt2, children, }) { let infoarray = []; let infodict = {}; if (info) { infoarray = info.split("\n"); infoarray = infoarray.slice(0, infoarray.length - 1); infodict = Object.assign({}, infoarray); } if (children) { return (

{alt}{" "} {title}

{children}
); } else if (src2) { return (

{alt}{" "} {title}

{Object.keys(infodict).map((i) => (

{infodict[i] == "" ?
: infodict[i]}

))}
{alt2}
); } else if (url) { return (

{alt}{" "} {title}

{Object.keys(infodict).map((i) => (

{infodict[i] == "" ?
: infodict[i]}

))}
Learn More
); } else { return (

{alt}{" "} {title}

{Object.keys(infodict).map((i) => (

{" "} {infodict[i] == "" ?
: infodict[i]}

))}
); } }