This commit is contained in:
hamid zarghami
2025-01-11 12:46:02 +03:30
parent f983ef12a2
commit 24fbeece97
19 changed files with 503 additions and 16 deletions
+20
View File
@@ -0,0 +1,20 @@
import { FC } from 'react'
type Props = {
isActive: boolean,
value: 'year' | '3month' | 'month',
onChange: (value: 'year' | '3month' | 'month') => void
}
const Radio: FC<Props> = (props: Props) => {
return (
<div onClick={() => props.onChange(props.value)} className='size-4 cursor-pointer rounded-full bg-[#EAEDF5] flex justify-center items-center'>
{
props.isActive &&
<div className='size-2 bg-black rounded-full'></div>
}
</div>
)
}
export default Radio