import React from 'react';
import { md, code, Example } from '@kalamazoo/docs';

const PitchSentence = () => (
  <p>
    Below is an icon explorer just for file-interface icons. You can view an
    icon explorer that includes all icons at the{' '}
    <a href="/packages/core/icon">main icons package documentation</a>
  </p>
);

export default md`
This package includes the field-interface icons. These are a subset of icons with the following unique attributes:

- They are represented at only 3 sizes, each size being a unique svg
    - a 16*16px icon
    - a 24*24px icon
    - a 48*64px icon
- They do not have the sizing prop.
- They have specific colours by default.
- they have a different API to icons in the \`@kalamazoo/icons\` package.

## Usage

${code`
import AudioIcon from '@kalamazoo/icon-file-interface/glyph/audio/16';

const MyComponent = () => (
    <AudioIcon />
)
`}

If you want to use the AudioIcon at a different size, you would need
to import the 24px version of the icon as follows:

${code`
import AudioIcon from '@kalamazoo/icon-file-interface/glyph/audio/24';

const MyComponent = () => (
    <AudioIcon />
)
`}

${(<PitchSentence />)}

${(
  <Example
    packageName="@kalamazoo/icon-file-type"
    Component={require('../examples/icon-explorer').default}
    title="Icon Explorer"
    source={require('!!raw-loader!../examples/icon-explorer')}
  />
)}
`;
