mirror of
https://github.com/SomboChea/ui
synced 2024-05-06 19:41:36 +07:00
18 lines
481 B
TypeScript
18 lines
481 B
TypeScript
import styled from '@emotion/styled';
|
|
|
|
import { Theme } from '../../design-tokens/theme';
|
|
|
|
export const Wrapper = styled('div')({
|
|
transform: 'translate(-50%, -50%)',
|
|
top: '50%',
|
|
left: '50%',
|
|
position: 'absolute',
|
|
});
|
|
|
|
export const Badge = styled('div')<{ theme?: Theme }>(({ theme }) => ({
|
|
margin: '0 0 30px 0',
|
|
borderRadius: 25,
|
|
boxShadow: '0 10px 20px 0 rgba(69, 58, 100, 0.2)',
|
|
background: theme?.palette.type === 'dark' ? theme?.palette.black : '#f7f8f6',
|
|
}));
|