aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/components/icon.tsx
blob: 112d4ed68575d2ba899f6b9e8f2ae98033a2367d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import * as React from 'react';
import styled from 'styled-components';

interface Props {
    icon: any;
    size?: string;
}

export const IconClass: React.FunctionComponent<Props> = (props: Props) => {
    const { icon, size } = props;

    return (
        <div />
    );
};

export const Icon = styled(IconClass)`
    margin: auto;
    flex-shrink: 0;

    ${(props: Props) => props.size && `
        width: ${props.size};
        height: auto;
    `}
`;