mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-16 20:49:23 +00:00
21 lines
482 B
TypeScript
21 lines
482 B
TypeScript
import { memo } from "react";
|
|
import equal from "react-fast-compare";
|
|
|
|
type Props = {
|
|
list: React.ReactNode[];
|
|
};
|
|
|
|
function RawConfigurations({ list }: Props) {
|
|
return (
|
|
<ul className="flex flex-col gap-1.5">
|
|
{list.map((config, i) => (
|
|
// re-render does not change the order
|
|
// eslint-disable-next-line react/no-array-index-key
|
|
<li key={i}>{config}</li>
|
|
))}
|
|
</ul>
|
|
);
|
|
}
|
|
|
|
export const Configurations = memo(RawConfigurations, equal);
|