Catalin Pinte 6d783eae35
Footer theme switcher (#894)
* Footer theme switcher

* Remove lazy loading & change rotation animation

* Changes

* Update ThemeSwitcher.tsx

* Requested style changes

* Update ThemeSwitcher.tsx

* Fix alignment

* Update ThemeSwitcher.tsx
2022-11-30 10:07:44 -05:00

23 lines
397 B
TypeScript

import { Moon, Sun, System } from '@components/icons'
interface ThemeIconProps {
theme?: string
width: number
height: number
}
const ThemeIcon = ({ theme, ...props }: ThemeIconProps) => {
switch (theme) {
case 'light':
return <Sun {...props} />
case 'dark':
return <Moon {...props} />
default:
return <System {...props} />
}
}
export default ThemeIcon