If you have Material UI library in your React project, you can do the follow:
import React from 'react';
import { SvgIcon } from '@material-ui/core';
export function NewIcon() {
return (
<SvgIcon viewBox="0 0 48 48"> // you may change the viewBox, so the image will fit into it
<path d="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z" />
</SvgIcon>
)
}
This will automatically change the SVG color when the Theme is changed (Light/Dark). Plus you can change its color and size as you wish e.g.
import React from 'react';
import { styled, SvgIcon } from '@material-ui/core';
const SvgImage = styled(SvgIcon)(() => ({
height: '40px',
width: '40px',
color: 'red',
}));
export function NewIcon() {
return (
<SvgImage viewBox="0 0 48 48">
<path d="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z" />
</SvgImage>
);
}
Documentation: https://mui.com/components/icons/#svgicon