26 lines
605 B
JavaScript
26 lines
605 B
JavaScript
import cancelSVG from 'icons/_icon_action_cancel.svg';
|
|
import retrySVG from 'icons/_icon_action_retry.svg';
|
|
import playSVG from 'icons/_icon_action_play.svg';
|
|
import stopSVG from 'icons/_icon_action_stop.svg';
|
|
|
|
export default function getActionIcon(action) {
|
|
let icon;
|
|
switch (action) {
|
|
case 'icon_action_cancel':
|
|
icon = cancelSVG;
|
|
break;
|
|
case 'icon_action_retry':
|
|
icon = retrySVG;
|
|
break;
|
|
case 'icon_action_play':
|
|
icon = playSVG;
|
|
break;
|
|
case 'icon_action_stop':
|
|
icon = stopSVG;
|
|
break;
|
|
default:
|
|
icon = '';
|
|
}
|
|
|
|
return icon;
|
|
}
|