mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-02-14 21:10:41 +01:00
* next.js + typescript * more testing * script updates * fixes * favicon generation * testing * readme updates * tweaks * tweaks * move tests * image tweaks * ci tweaks * commit next-env.d.ts for ci * migrations * fixes * fixes * ci tweaks * new animations * project preview tweaks * add codeclimate config * dark mode refactor, test tweaks * readme updates * animation tweaks * animate in loaded images * test update * update humans.txt
18 lines
309 B
TypeScript
18 lines
309 B
TypeScript
import React from 'react'
|
|
|
|
type Props = {
|
|
dark: boolean
|
|
toggleDark: () => void
|
|
}
|
|
|
|
export const ThemeToggleInput = ({ dark, toggleDark }: Props) => (
|
|
<input
|
|
onChange={() => toggleDark()}
|
|
type="checkbox"
|
|
name="toggle"
|
|
value="toggle"
|
|
aria-describedby="toggle"
|
|
checked={dark}
|
|
/>
|
|
)
|