mirror of
https://github.com/strapi/strapi.git
synced 2025-08-10 01:38:10 +00:00

Created OLD folder. Fix load plugin when no Initializer is provided. Signed-off-by: soupette <cyril.lpz@gmail.com>
24 lines
470 B
JavaScript
24 lines
470 B
JavaScript
import styled from 'styled-components';
|
|
|
|
const Wrapper = styled.div`
|
|
font-size: 20px;
|
|
color: ${({ type }) => {
|
|
switch (type) {
|
|
case 'file-pdf':
|
|
return '#E26D6D';
|
|
case 'file-image':
|
|
return '#8AA066';
|
|
case 'file-video':
|
|
return '#77C69E';
|
|
case 'file-code':
|
|
return '#515A6D';
|
|
case 'file-archive':
|
|
return '#715A31';
|
|
default:
|
|
return '#BDBFC2';
|
|
}
|
|
}};
|
|
`;
|
|
|
|
export default Wrapper;
|