mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-28 10:35:20 +00:00
30 lines
614 B
TypeScript
30 lines
614 B
TypeScript
![]() |
import React from 'react';
|
||
|
import styled from 'styled-components';
|
||
|
|
||
|
const DomainContainerWrapper = styled.div`
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
align-items: center;
|
||
|
padding: 12px;
|
||
|
`;
|
||
|
|
||
|
const DomainContentWrapper = styled.div`
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
`;
|
||
|
|
||
|
type Props = {
|
||
|
name: string;
|
||
|
};
|
||
|
|
||
|
export const DomainLabel = ({ name }: Props) => {
|
||
|
return (
|
||
|
<DomainContainerWrapper>
|
||
|
<DomainContentWrapper>
|
||
|
<div>{name}</div>
|
||
|
</DomainContentWrapper>
|
||
|
</DomainContainerWrapper>
|
||
|
);
|
||
|
};
|