prototype(GesagtGetan.Theme:Component.Icon.File) < prototype(Neos.Fusion:Value) {
    addStrockeClass = false
    removeColors = false
    hideSvg = false
    class = null

    value = ${this.path ? File.readFile(this.path) : ''}

    @process {
        addStrockeClass = ${this.addStrockeClass ? String.pregReplace(value, '/(?>\sstroke="[#\w]*")/', ' class="-stroke"') : value}
        removeColors = ${this.removeColors ? String.pregReplace(value, '/(?>\s(?>fill|stroke)="[#\w]*")/', '') : value}
        hideSvg = ${this.hideSvg ? String.replace(value, '<svg', '<svg style="display:none"') : value}
        addClass = ${this.class ? String.replace(value, '<svg', '<svg class="' + this.class + '"') : value}
    }
}
