Files
DevToysWeb/components/configurations.tsx
rusconn 2741082c84 refactor!: refine spacings
BREAKING CAHNGE: some spaces changed
2024-03-29 20:47:21 +09:00

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);