Sha256: d2ead6423595d8820a66e0fe9a45be9ceeee5094b9fecfa07bb8ce1aa28a27a5

Contents?: true

Size: 588 Bytes

Versions: 733

Compression:

Stored size: 588 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
      />
    </div>
  )
}

Version data entries

733 entries across 427 versions & 1 rubygems

Version Path
playbook_ui-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_dialog/_close_icon.tsx