{"version":3,"file":"OpenInNewTabIcon.cjs","sources":["../../../src/components/Icon/OpenInNewTabIcon.tsx"],"sourcesContent":["'use client'\n\nimport { type ComponentProps, memo } from 'react'\nimport { FaUpRightFromSquare } from 'react-icons/fa6'\n\nimport { useIntl } from '../../intl'\n\nimport { generateIcon } from './generateIcon'\n\nconst FaUpRightFromSquareIcon = /*#__PURE__*/ generateIcon(FaUpRightFromSquare)\n\n// TODO: 最終的にこのコンポーネントはexportされず、TextLink, AnchorButtonからのみ\n// 参照される状態になるため、alt属性は固定される想定です。\n// type Props = Omit<ComponentProps<typeof FaUpRightFromSquareIcon>, 'alt'>\ntype Props = ComponentProps<typeof FaUpRightFromSquareIcon>\n\nconst OpenInNewTabIcon = memo<Props>(({ alt, ...rest }) => {\n  const { localize } = useIntl()\n\n  return (\n    <FaUpRightFromSquareIcon\n      {...rest}\n      alt={\n        alt ||\n        localize({\n          id: 'smarthr-ui/OpenInNewTabIcon/openInNewTab',\n          defaultText: '別タブで開く',\n        })\n      }\n    />\n  )\n})\n\nOpenInNewTabIcon.displayName = 'OpenInNewTabIcon'\n\nexport { OpenInNewTabIcon }\n"],"names":[],"mappings":";;;;;;;;;;;;AASA;AAOA;AACE;;AAOM;AACE;AACA;;AAKV;AAEA;;"}