optimize various base components

This commit is contained in:
jeffvli
2026-01-02 12:46:35 -08:00
parent a66c67e86d
commit d06d1674d1
31 changed files with 669 additions and 393 deletions
+5 -2
View File
@@ -1,7 +1,10 @@
import { ElementProps, Box as MantineBox, BoxProps as MantineBoxProps } from '@mantine/core';
import { memo } from 'react';
export interface BoxProps extends ElementProps<'div', keyof MantineBoxProps>, MantineBoxProps {}
export const Box = ({ children, ...props }: BoxProps) => {
export const Box = memo(({ children, ...props }: BoxProps) => {
return <MantineBox {...props}>{children}</MantineBox>;
};
});
Box.displayName = 'Box';