import React, {HTMLAttributes, HtmlHTMLAttributes, PropsWithChildren, ReactNode} from "react";
import styles from "./Text.module.scss";
interface Props extends PropsWithChildren> {
color?: string;
}
interface TextComponent {
children?: ReactNode;
H1: (props: PropsWithChildren>) => JSX.Element;
H2: (props: PropsWithChildren>) => JSX.Element;
H3: (props: PropsWithChildren>) => JSX.Element;
H4: (props: PropsWithChildren>) => JSX.Element;
H5: (props: PropsWithChildren>) => JSX.Element;
Subtitle1: (props: PropsWithChildren>) => JSX.Element;
Subtitle2: (props: PropsWithChildren>) => JSX.Element;
Body1: (props: PropsWithChildren>) => JSX.Element;
Body2: (props: PropsWithChildren>) => JSX.Element;
Body3: (props: PropsWithChildren>) => JSX.Element;
Caption: (props: PropsWithChildren>) => JSX.Element;
Error: (props: PropsWithChildren>) => JSX.Element;
}
const Text: TextComponent = (props :PropsWithChildren) => {props.children};
function H1(props: Props): JSX.Element {
return ({props.children}
);
}
function H2(props: Props): JSX.Element {
return ({props.children}
);
}
function H3(props: Props): JSX.Element {
return ({props.children}
);
}
function H4(props: Props): JSX.Element {
return ({props.children}
);
}
function H5(props: Props): JSX.Element {
return ({props.children}
);
}
function Subtitle1(props: Props): JSX.Element {
return ({props.children}
);
}
function Subtitle2(props: Props): JSX.Element {
return ({props.children}
);
}
function Body1(props: Props): JSX.Element {
return ({props.children});
}
function Body2(props: Props): JSX.Element {
return ({props.children});
}
function Body3(props: Props): JSX.Element {
return ({props.children});
}
function Caption(props: Props): JSX.Element {
return ({props.children}
);
}
function Error(props: Props): JSX.Element {
return ({props.children}
);
}
Text.H1 = H1;
Text.H2 = H2;
Text.H3 = H3;
Text.H4 = H4;
Text.H5 = H5;
Text.Subtitle1 = Subtitle1;
Text.Subtitle2 = Subtitle2;
Text.Body1 = Body1;
Text.Body2 = Body2;
Text.Body3 = Body3;
Text.Caption = Caption;
Text.Error = Error;
export default Text;