import React from 'react';

export default function Icon({ icon }) {
  return (
    <svg viewBox="0 0 1024 1024">
      <path d={icon}></path>
    </svg>
  );
};

import React from 'react';

export default function Icon({ icon }) {
  return (
    <svg className="icon" viewBox="0 0 1024 1024">
      <path d={icon}></path>
    </svg>
  );
};

Add class names to svg icon components
Add class names to svg icon components
