import styled from "styled-components";
import { Flex, Pill, Text } from "rimble-ui";
import { Facebook, LinkedIn, Medium, TwitterBird, YouTube } from "./Icons";
import { baseColors, colors, fonts } from "../../themes";
import { LinkedId } from "../../types";
export const ExpiredPill: React.FunctionComponent = () => {
return (
Expired
);
};
const PillImg = styled.div`
align-items: center;
background-color: ${baseColors.white};
border: 1px solid ${colors.nearWhite};
border-radius: 50%;
display: flex;
height: 22px;
justify-content: center;
overflow: hidden;
width: 22px;
`;
export interface PillWithImgProps {
icon?: JSX.Element;
text: string;
[key: string]: any;
}
export const PillWithImg: React.FunctionComponent = (props) => {
return (
{props.icon ? (
<>
{props.icon}
{props.text}
>
) : (
{props.text}
)}
);
};
const StyledLink = styled.a`
margin-right: 16px;
text-decoration: none;
`;
export interface SocialPillsProps {
linkedId: LinkedId;
}
export const SocialPills: React.FunctionComponent = (props) => {
const { linkedId } = props;
return (
<>
{linkedId.platform === "Facebook" ? (
} text={linkedId.linkedId} />
) : linkedId.platform === "LinkedIn" ? (
} text={linkedId.linkedId} />
) : linkedId.platform === "Medium" ? (
} text={linkedId.linkedId} />
) : linkedId.platform === "Twitter" ? (
} text={linkedId.linkedId} />
) : linkedId.platform === "Youtube" ? (
} text={linkedId.linkedId} />
) : (
)}
>
);
};