1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-05-19 09:51:36 +07:00
verdaccio-ui/src/components/Readme
Priscila Oliveira cdad5cf70d
feat(style): added dark mode (#446)
2020-03-31 08:44:59 +02:00
..
__snapshots__ feat(style): added dark mode (#446) 2020-03-31 08:44:59 +02:00
index.ts feat: migrating flow to typescript (#47) 2019-06-20 14:37:28 +02:00
Readme.spec.tsx feat(style): added dark mode (#446) 2020-03-31 08:44:59 +02:00
Readme.tsx feat(style): added dark mode (#446) 2020-03-31 08:44:59 +02:00
types.ts feat: migrating flow to typescript (#47) 2019-06-20 14:37:28 +02:00

import React from 'react';
import 'github-markdown-css';
import styled from '@emotion/styled';

import { Theme } from '../../design-tokens/theme';

import { Props } from './types';

const Readme: React.FC<Props> = ({ description }) => (
  <Wrapper className="markdown-body" dangerouslySetInnerHTML={{ __html: description }} />
);

export default Readme;

const Wrapper = styled('div')<{ theme?: Theme }>(({ theme }) => ({
  background: theme?.palette.white,
  color: theme?.palette.black,
  padding: theme?.spacing(2, 3),
}));