File ManagerCurrent Directory: wp-content/themes/astra/inc/assets/jsLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: ast-render-svg.js /** * Set inline CSS class. * @param {object} props - The block object. * @return {array} The inline CSS class. */ import astIcons from "../../../assets/svg/ast-social-icons" import parseSVG from "./ast-parse-svg" import React from 'react'; function renderSVG ( svg ) { svg = parseSVG( svg ) var fontAwesome = astIcons[svg] if ( "undefined" != typeof fontAwesome ) { var viewbox_array = ( fontAwesome["svg"].hasOwnProperty("brands") ) ? fontAwesome["svg"]["brands"]["viewBox"] : fontAwesome["svg"]["solid"]["viewBox"] var path = ( fontAwesome["svg"].hasOwnProperty("brands") ) ? fontAwesome["svg"]["brands"]["path"] : fontAwesome["svg"]["solid"]["path"] var viewBox = viewbox_array.join( " " ) return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox={viewBox}><path d={path}></path></svg> ) } } export default renderSVG; Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)Dirast-parse-svg.jsFile244.00 B Rename | Delete | Editast-render-svg.jsFile882.00 B Rename | Delete | Editastra-admin-menu-settings.jsFile4.96 KB Rename | Delete | Editblock-editor-script.jsFile12.14 KB Rename | Delete | Editcolumn-block-compatibility.jsFile1.72 KB Rename | Delete | Editcustom-fields-priority.jsFile900.00 B Rename | Delete | Editcustomizer-preview.jsFile14.09 KB Rename | Delete | Edit