refactor: theme icon for icon size setting
This commit is contained in:
18
src/components/ui/ThemeIcon/ThemeIcon.tsx
Normal file
18
src/components/ui/ThemeIcon/ThemeIcon.tsx
Normal file
@ -0,0 +1,18 @@
|
||||
import React, { FC } from "react";
|
||||
import { Center, ThemeIconProps } from "@mantine/core";
|
||||
|
||||
type Props = ThemeIconProps;
|
||||
|
||||
const ThemeIcon: FC<Props> = props => {
|
||||
return (
|
||||
<Center>
|
||||
<ThemeIcon
|
||||
bg={"transparent"}
|
||||
{...props}>
|
||||
{props.children}
|
||||
</ThemeIcon>
|
||||
</Center>
|
||||
);
|
||||
};
|
||||
|
||||
export default ThemeIcon;
|
||||
Reference in New Issue
Block a user