File size: 502 Bytes
41a71fd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { ReactNode } from 'react';
import { classNames } from '@/shared/lib/classNames/classNames';
import cls from './Title.module.scss';

interface TitleProps {
    className?: string;
    positionCenter?: boolean;
    children: ReactNode;
}

export const Title = (props: TitleProps) => {
    const { className, positionCenter, children } = props;

    return (
        //
        <h2 className={classNames(cls.Title, { [cls.positionCenter]: positionCenter }, [className])}>{children}</h2>
    );
};