feat: add Json <> Yaml converter

This commit is contained in:
rusconn
2022-03-26 03:18:44 +00:00
parent 55fd4a6473
commit 20df0b8c19
16 changed files with 398 additions and 6 deletions

View File

@@ -0,0 +1,21 @@
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;