

export default function DisplayResults({results}: { results: { name: string, description: string }[] }) {
    const list = results.map(({name, description}) =>
        <div>
            <p>username: {name}</p>
            <p>description: {description}</p>
        </div>
    )
    return (
        <div>
            {list}
        </div>
    )
}
