diff --git a/src/features/Icons/Close/index.tsx b/src/features/Icons/Close/index.tsx new file mode 100644 index 00000000..c7399fc4 --- /dev/null +++ b/src/features/Icons/Close/index.tsx @@ -0,0 +1,18 @@ +type Props = { + size?: number, +} + +export const Close = ({ size = 16 }: Props) => ( + + + +) diff --git a/src/features/SportIcon/index.tsx b/src/features/SportIcon/index.tsx new file mode 100644 index 00000000..c89663db --- /dev/null +++ b/src/features/SportIcon/index.tsx @@ -0,0 +1,27 @@ +import styled from 'styled-components/macro' + +import { SportTypes } from 'config' +import { getSportLexic } from 'helpers' + +type IconProps = { + src: string, +} + +const Icon = styled.span` + display: inline-block; + height: 10px; + min-width: 10px; + + background-image: url(/images/${({ src }) => `${src}-icon`}.svg); + background-repeat: no-repeat; + background-position: center; + background-size: 100% 100%; +` + +type Props = { + sport: SportTypes, +} + +export const SportIcon = ({ sport }: Props) => ( + +)