mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-17 12:32:56 +00:00
22 lines
568 B
TypeScript
22 lines
568 B
TypeScript
import { Stack } from "@mui/material";
|
|
import equal from "fast-deep-equal";
|
|
import { ComponentPropsWithoutRef, memo } from "react";
|
|
|
|
import Configuration from "./Configuration";
|
|
|
|
type Props = {
|
|
configurations: ComponentPropsWithoutRef<typeof Configuration>[];
|
|
};
|
|
|
|
const StyledComponent = ({ configurations }: Props) => (
|
|
<Stack spacing={1}>
|
|
{configurations.map(({ icon, title, input }) => (
|
|
<Configuration key={title} {...{ icon, title, input }} />
|
|
))}
|
|
</Stack>
|
|
);
|
|
|
|
export const Component = memo(StyledComponent, equal);
|
|
|
|
export default Component;
|