22 lines
485 B
JavaScript
22 lines
485 B
JavaScript
import React from 'react';
|
|
|
|
const DarkModeIcon = ({ className, onClick }) => (
|
|
<svg
|
|
onClick={onClick}
|
|
xmlns='http://www.w3.org/2000/svg'
|
|
width='24'
|
|
height='24'
|
|
viewBox='0 0 24 24'
|
|
fill='none'
|
|
stroke='currentColor'
|
|
strokeWidth='2'
|
|
strokeLinecap='round'
|
|
strokeLinejoin='round'
|
|
className={`feather feather-moon ${className}`}
|
|
>
|
|
<path d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'></path>
|
|
</svg>
|
|
);
|
|
|
|
export default DarkModeIcon;
|