import Avatar from "../components/Avatar"
export default function Avs(props) {
return (
<>
Avatars
{props.avs.map(data => )}
>
)
}
export const getStaticProps = async () => {
const res = await fetch(`http://localhost:3000/api/avatars`);
const avs = await res.json();
return {
props: {
avs
}
}
}