import { Box, Paper, Stack, Typography } from "@mui/material"; import { css, Theme } from "@mui/material/styles"; import { memo, ReactNode } from "react"; export type Props = { icon: ReactNode; title: string; input: ReactNode; }; const paper = (theme: Theme) => css` padding: ${theme.spacing(2)}; height: ${theme.spacing(8)}; `; const StyledComponent = ({ icon, title, input }: Props) => ( theme.spacing(4)}> {icon} {title} {input} ); export const Component = memo(StyledComponent); export default Component;