import { Box, Stack, StackProps, Typography } from "@mui/material"; import { memo, PropsWithChildren } from "react"; export type Props = PropsWithChildren<{ title: string } & StackProps>; const StyledComponent = ({ children, title, ...stackProps }: Props) => ( // eslint-disable-next-line react/jsx-props-no-spreading {title} {children} ); export const Component = memo(StyledComponent); export default Component;