16 lines
414 B
TypeScript
16 lines
414 B
TypeScript
import { FaAlignLeft, FaAlignJustify } from 'react-icons/fa'
|
|
import type { CommonProps } from '@/proxy/common'
|
|
|
|
export interface NavToggleProps extends CommonProps {
|
|
toggled?: boolean
|
|
}
|
|
|
|
const NavToggle = ({ toggled, className }: NavToggleProps) => {
|
|
return (
|
|
<div className={className}>
|
|
{toggled ? <FaAlignJustify /> : <FaAlignLeft />}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default NavToggle
|