2021-05-01 01:15:09 -05:00
|
|
|
import PButton from "./page-button";
|
|
|
|
|
2021-06-11 03:10:41 -05:00
|
|
|
export default function ProjectBlock({ pages }) {
|
2021-05-01 01:15:09 -05:00
|
|
|
return (
|
2021-05-01 18:25:28 -05:00
|
|
|
<nav>
|
2021-10-14 16:22:07 -05:00
|
|
|
<div className="flow space-y-4">
|
2021-06-11 03:10:41 -05:00
|
|
|
{Object.keys(pages).map((page) => (
|
2021-05-01 18:25:28 -05:00
|
|
|
<PButton
|
|
|
|
key={page}
|
|
|
|
title={page}
|
2021-06-11 03:10:41 -05:00
|
|
|
images={pages[page].images}
|
|
|
|
url={pages[page].url}
|
2021-10-17 17:17:26 -05:00
|
|
|
new_tab={Boolean(pages[page].new_tab)}
|
2021-05-01 18:25:28 -05:00
|
|
|
/>
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</nav>
|
2021-05-01 01:15:09 -05:00
|
|
|
);
|
|
|
|
}
|