<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['name', 'gradient' => false, 'strokeWidth' => 2]));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter((['name', 'gradient' => false, 'strokeWidth' => 2]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars, $__key, $__value); ?>
<?php
    $icon = \App\Support\Icons::get($name);
?>
<?php if($icon): ?>
    <?php if($icon['type'] === 'fill'): ?>
        <svg
            xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" focusable="false" aria-hidden="true"
            fill="<?php echo e($gradient ? 'url(#icon-instagram-gradient)' : 'currentColor'); ?>"
            <?php echo e($attributes->merge(['class' => 'h-5 w-5'])); ?>

        ><?php echo $icon['body']; ?></svg>
    <?php else: ?>
        <svg
            xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" focusable="false" aria-hidden="true"
            fill="none"
            stroke="<?php echo e($gradient ? 'url(#icon-gold-gradient)' : 'currentColor'); ?>"
            stroke-width="<?php echo e($strokeWidth); ?>" stroke-linecap="round" stroke-linejoin="round"
            <?php echo e($attributes->merge(['class' => 'h-5 w-5'])); ?>

        ><?php echo $icon['body']; ?></svg>
    <?php endif; ?>
<?php endif; ?>
<?php /**PATH G:\Projects\ecommerce\resources\views/components/icon.blade.php ENDPATH**/ ?>