Initial commit
This commit is contained in:
26
src/components/ProTitle.tsx
Normal file
26
src/components/ProTitle.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
import Title, { TitleProps } from "antd/es/typography/Title";
|
||||
import { FunctionComponent, ReactNode } from "react";
|
||||
|
||||
interface ProTitle extends TitleProps {
|
||||
children?: ReactNode;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const ProTitle: FunctionComponent<ProTitle> = ({
|
||||
children,
|
||||
className,
|
||||
...other
|
||||
}) => {
|
||||
// const { locale } = useAppSelector((state) => state.locale);
|
||||
return (
|
||||
<Title
|
||||
className={className}
|
||||
// style={{textAlign: getDirection(locale) === "rtl" ? "right" : "left"}}
|
||||
{...other}
|
||||
>
|
||||
{children}
|
||||
</Title>
|
||||
);
|
||||
};
|
||||
|
||||
export default ProTitle;
|
||||
Reference in New Issue
Block a user