import React from 'react';
import styled from 'styled-components';

import type { IconProps } from '@redocly/theme/icons/types';

import { getCssColorVariable } from '@redocly/theme/core/utils';

const Icon = (props: IconProps) => (
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" fill="none" {...props}>
    <path d="M9.625 2.625H1.75V3.5H9.625V2.625Z" fill="#1A1C21" />
    <path d="M9.625 5.25H1.75V6.125H9.625V5.25Z" fill="#1A1C21" />
    <path d="M7 7.875H1.75V8.75H7V7.875Z" fill="#1A1C21" />
    <path d="M9.1875 7.875L12.25 10.0625L9.1875 12.25V7.875Z" fill="#1A1C21" />
  </svg>
);

export const PlaylistIcon = styled(Icon).attrs({
  'data-component-name': 'icons/PlaylistIcon/PlaylistIcon',
})`
  path {
    fill: ${({ color }) => getCssColorVariable(color)};
  }
  height: ${({ size }) => size || '16px'};
  width: ${({ size }) => size || '16px'};
`;
