mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-16 12:32:48 +00:00
16 lines
344 B
TypeScript
16 lines
344 B
TypeScript
type Props = {
|
|
list: React.ReactNode[];
|
|
};
|
|
|
|
export function ControlMenu({ list }: Props) {
|
|
return (
|
|
<menu className="flex gap-2">
|
|
{list.map((control, i) => (
|
|
// re-render does not change the order
|
|
// eslint-disable-next-line react/no-array-index-key
|
|
<li key={i}>{control}</li>
|
|
))}
|
|
</menu>
|
|
);
|
|
}
|