import type { TitleProps as MantineTitleProps } from '@mantine/core'; import type { ComponentPropsWithoutRef, ReactNode } from 'react'; import { createPolymorphicComponent, Title as MantineHeader } from '@mantine/core'; import clsx from 'clsx'; import styles from './text-title.module.css'; type MantineTextTitleDivProps = ComponentPropsWithoutRef<'div'> & MantineTitleProps; interface TextTitleProps extends MantineTextTitleDivProps { children?: ReactNode; isLink?: boolean; isMuted?: boolean; isNoSelect?: boolean; overflow?: 'hidden' | 'visible'; to?: string; weight?: number; } const _TextTitle = ({ children, className, isLink, isMuted, isNoSelect, overflow, weight, ...rest }: TextTitleProps) => { return ( {children} ); }; export const TextTitle = createPolymorphicComponent<'div', TextTitleProps>(_TextTitle);