Add pipe chip

This commit is contained in:
Anders Borch
2023-04-21 16:03:29 +02:00
parent 049664b98e
commit be601c58b1
2 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,32 @@
import * as React from 'react';
import styled from '@emotion/styled';
type OwnProps = {
name: string;
picture?: string;
};
const StyledContainer = styled.span`
background-color: ${(props) => props.theme.tertiaryBackground};
border-radius: ${(props) => props.theme.spacing(1)};
color: ${(props) => props.theme.text80};
display: inline-flex;
align-items: center;
padding: ${(props) => props.theme.spacing(1)};
gap: ${(props) => props.theme.spacing(1)};
:hover {
filter: brightness(95%);
}
`;
function PipeChip({ name, picture }: OwnProps) {
return (
<StyledContainer data-testid="company-chip">
{picture && <span>{picture}</span>}
<span>{name}</span>
</StyledContainer>
);
}
export default PipeChip;