Sha256: bae4e04e31ea66b35b2ebfaa2438ba5577f6a34c26ac15b9ba6a5fb2ed62438c

Contents?: true

Size: 606 Bytes

Versions: 2

Compression:

Stored size: 606 Bytes

Contents

import React from 'react'
import Icon from '../pb_icon/_icon'

import { getAllIcons } from "../utilities/icons/allicons"

type CloseIconProps = {
  onClose: () => void,
}

export const CloseIcon = (props: CloseIconProps): React.ReactElement => {
  const { onClose } = props
  const timesIcon = getAllIcons()["times"]
  return (
    <div
        className="pb_dialog_close_icon"
        onClick={onClose}
    >
      <Icon
          className="svg-inline--fa"
          customIcon={timesIcon.icon as unknown as { [key: string]: SVGElement }}
          fixedWidth
          icon=""
      />
    </div>
  )
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
playbook_ui-13.34.1.pre.alpha.play1447addrequiredicons3455 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-13.34.1.pre.alpha.play1447addrequiredicons3451 app/pb_kits/playbook/pb_dialog/_close_icon.tsx