/** @jsxRuntime classic */
/** @jsx jsx */
import React, { Fragment, ReactNode } from 'react';
import { useTheme } from '@emotion/react';
import { css, jsx } from '@emotion/react';
import {
StyledH1,
StyledH2,
StyledH3,
StyledH4,
StyledBodyAccented,
StyledBody1,
StyledBody1Link,
StyledCTA,
StyledBody2Accented,
StyledBody2,
StyledBody2Link,
StyledCTA2,
StyledCaptionAccented,
StyledCaption,
StyledCaptionLink,
StyledCaptionCTA,
StyledOverlinedAccented,
StyledOverline,
StyledOverlineLink,
} from './styles';
import { ETypography, ETypographyColor } from '../../types/theme';
import { useColors } from '../../hooks/useColors';
export const H1 = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const H2 = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const H3 = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const H4 = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const Body1Accented = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const Body1 = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const Body1Link = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const CTA1 = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const Body2Accented = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const Body2 = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const Body2Link = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const CTA2 = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const CaptionAccented = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const Caption = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const CaptionLink = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const CaptionCTA = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const OverlineAccented = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const Overline = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const OverlineLink = ({
color,
children,
...props
}: {
color: ETypographyColor;
children: ReactNode | string;
}) => {
const { colors } = useColors();
return (
{children}
);
};
export const Typography = ({
type,
color,
children,
...props
}: {
type: ETypography;
color: ETypographyColor;
children: ReactNode | string;
}) => {
switch (type) {
case 'h1':
return (
{children}
);
case 'h2':
return (
{children}
);
case 'h3':
return (
{children}
);
case 'h4':
return (
{children}
);
case 'Body1Accented':
return (
{children}
);
case 'body1':
return (
{children}
);
case 'body1Link':
return (
{children}
);
case 'cta1':
return (
{children}
);
case 'body2Accented':
return (
{children}
);
case 'body2':
return (
{children}
);
case 'body2Link':
return (
{children}
);
case 'cta2':
return (
{children}
);
case 'captionAccented':
return (
{children}
);
case 'caption':
return (
{children}
);
case 'captionLink':
return (
{children}
);
case 'captionCTA':
return (
{children}
);
case 'overlineAccented':
return (
{children}
);
case 'overline':
return (
{children}
);
case 'overlineLink':
return (
{children}
);
default:
return ;
}
};