mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 09:53:44 +08:00
22 lines
418 B
TypeScript
22 lines
418 B
TypeScript
import { Box, BoxProps } from "@mui/material";
|
|
import React from "react";
|
|
|
|
interface CenterProps extends BoxProps {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export const Center: React.FC<CenterProps> = ({ children, ...props }) => {
|
|
return (
|
|
<Box
|
|
display="flex"
|
|
justifyContent="center"
|
|
alignItems="center"
|
|
width="100%"
|
|
height="100%"
|
|
{...props}
|
|
>
|
|
{children}
|
|
</Box>
|
|
);
|
|
};
|