UNPKG

@ozen-ui/icons

Version:

A collection of icons

17 lines (16 loc) 691 B
import { __assign, __rest } from "tslib"; import React, { forwardRef } from 'react'; import { DeviceMIcon } from './DeviceMIcon'; import { DeviceSIcon } from './DeviceSIcon'; export var DeviceIcon = forwardRef(function (_a, ref) { var size = _a.size, otherProps = __rest(_a, ["size"]); switch (size) { case 's': return React.createElement(DeviceSIcon, __assign({}, otherProps, { ref: ref })); case 'm': return React.createElement(DeviceMIcon, __assign({}, otherProps, { ref: ref })); default: return React.createElement(DeviceMIcon, __assign({}, otherProps, { ref: ref })); } }); DeviceIcon.displayName = 'DeviceIcon';