import React, { FC } from 'react';
import styled from 'styled-components';

import { RendererProps } from './RendererProps';

const Div = styled.div<RendererProps>`
    font-family: PreplyInter;
    @supports (font-variation-settings: normal) {
        font-family: PreplyInterV;
    }
    font-style: ${({ value }) => value};
    font-size: 14px;
`;

export const RendererFontStyle: FC<RendererProps> = ({ value }) => {
    return <Div value={value}>Lorem ipsum dolor sit amet.</Div>;
};
