moved
BIN
packages/lib/src/components/base/Icon/check.png
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
BIN
packages/lib/src/components/base/Icon/close.png
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
packages/lib/src/components/base/Icon/download.png
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
packages/lib/src/components/base/Icon/filter.png
Normal file
|
After Width: | Height: | Size: 6.2 KiB |
47
packages/lib/src/components/base/Icon/index.js
Normal file
@@ -0,0 +1,47 @@
|
||||
import React from 'react';
|
||||
import styled from 'styled-components/native';
|
||||
|
||||
import reload from './reload.png';
|
||||
import trash from './trash.png';
|
||||
import remove from './return.png';
|
||||
import right from './right.png';
|
||||
import left from './left.png';
|
||||
import play from './play.png';
|
||||
import download from './download.png';
|
||||
import close from './close.png';
|
||||
import filter from './filter.png';
|
||||
import square from './square.png';
|
||||
import check from './check.png';
|
||||
|
||||
const icons = {
|
||||
reload,
|
||||
trash,
|
||||
remove,
|
||||
right,
|
||||
left,
|
||||
play,
|
||||
download,
|
||||
close,
|
||||
filter,
|
||||
square,
|
||||
check,
|
||||
}
|
||||
|
||||
const Image = styled.Image`
|
||||
height: ${({ height }) => height || '16'}px;
|
||||
width: ${({ width }) => width || '16'}px;
|
||||
`;
|
||||
|
||||
const Icon = ({
|
||||
name,
|
||||
width,
|
||||
height
|
||||
}) => (
|
||||
<Image
|
||||
width={width}
|
||||
height={height}
|
||||
source={icons[name]}
|
||||
/>
|
||||
);
|
||||
|
||||
export default Icon;
|
||||
BIN
packages/lib/src/components/base/Icon/left.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
packages/lib/src/components/base/Icon/play.png
Normal file
|
After Width: | Height: | Size: 8.3 KiB |
BIN
packages/lib/src/components/base/Icon/reload.png
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
BIN
packages/lib/src/components/base/Icon/return.png
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
BIN
packages/lib/src/components/base/Icon/right.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
packages/lib/src/components/base/Icon/square.png
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
packages/lib/src/components/base/Icon/trash.png
Normal file
|
After Width: | Height: | Size: 6.2 KiB |