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.play1724darkmodeauditmap5437 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5437 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.PBNTR719listdraggablesimple5432 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.PBNTR719listdraggablesimple5432 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.PBNTR768stickyrightcolumn5431 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.PBNTR768stickyrightcolumn5431 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.12.0.pre.rc.6 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.12.0.pre.rc.6 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5415 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5415 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5413 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5413 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-14.12.0.pre.rc.5 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-14.12.0.pre.rc.5 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5409 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.play1724darkmodeauditmap5409 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5400 app/pb_kits/playbook/pb_dialog/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5400 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5392 app/pb_kits/playbook/pb_drawer/_close_icon.tsx
playbook_ui-14.11.1.pre.alpha.PBNTR718simiplifieddraggablereact5392 app/pb_kits/playbook/pb_dialog/_close_icon.tsx