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 viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
    <path d="M12 8V13.3757L8 11.3525L4 13.374V2H9V1H4C3.73478 1 3.48043 1.10536 3.29289 1.29289C3.10536 1.48043 3 1.73478 3 2V15L8 12.4732L13 15V8H12Z" />
    <path d="M13 3V1H12V3H10V4H12V6H13V4H15V3H13Z" />
  </svg>
);

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