Files
web-menu-react-version-/src/components/ProTitle.tsx
2025-10-04 18:22:24 +03:00

27 lines
581 B
TypeScript

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;