Open-Sora/components/PubButtonList.js

26 lines
485 B
JavaScript
Raw Permalink Normal View History

2024-04-24 07:59:00 +02:00
const Button = (item) => {
return (
2024-04-27 06:25:06 +02:00
<a
href={item.link}
className="flex rounded-full bg-black text-white p-2 items-center gap-x-1 px-4"
>
2024-04-24 07:59:00 +02:00
<item.iconType />
<span>{item.name}</span>
</a>
);
};
const ButtonList = ({ links }) => {
return (
<div className="flex justify-center">
{links.map((link) => (
<div className="mx-1">
<Button {...link} />
</div>
))}
</div>
);
};
export default ButtonList;