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

import { RendererProps } from './RendererProps';

const Div = styled.div<RendererProps>`
    transition: all ${({ value }) => value};

    padding-left: 0px;
    &:hover {
        padding-left: 100px;
    }
`;

export const RendererTransition: FC<RendererProps> = ({ value }) => {
    return (
        <Div value={value}>
            <p>Hover me, please 🙏</p>
        </Div>
    );
};
