mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
30 lines
584 B
TypeScript
30 lines
584 B
TypeScript
import styled from '@emotion/styled';
|
|
|
|
import {IconChevron} from 'sentry/icons';
|
|
|
|
type Props = {
|
|
isHover?: boolean;
|
|
isLast?: boolean;
|
|
};
|
|
|
|
function Divider({isHover, isLast}: Props) {
|
|
return isLast ? null : (
|
|
<StyledDivider>
|
|
<StyledIconChevron direction={isHover ? 'down' : 'right'} legacySize="14px" />
|
|
</StyledDivider>
|
|
);
|
|
}
|
|
|
|
const StyledIconChevron = styled(IconChevron)`
|
|
display: block;
|
|
`;
|
|
|
|
const StyledDivider = styled('span')`
|
|
display: inline-block;
|
|
margin-left: 6px;
|
|
color: ${p => p.theme.gray200};
|
|
position: relative;
|
|
`;
|
|
|
|
export default Divider;
|