26 lines
796 B
TypeScript
Raw Permalink Normal View History

2025-01-09 00:40:28 +03:00
'use client';
import * as React from 'react';
import Image from "next/image";
interface Props {
className?: string;
name: string;
variant?: 'default' | 'secondary';
}
const Select: React.FC<Props> = ({className, name, variant = 'default'}) => {
const variantClasses = {
default: 'px-[25px] py-[10px]',
secondary: 'px-[36px] py-[7px] bg-white',
};
return(
2025-01-14 18:28:14 +03:00
<div className={`${className} ${variantClasses[variant]} max-w-[225px] min-w-[180px] justify-center w-fit cursor-pointer border-blue border-[1px] flex gap-[10px] rounded-[10px]`}>
<p className="text-blue font-[700] text-[16px]">{name}</p>
2025-01-09 00:40:28 +03:00
<Image src="/images/chevronDown.svg" alt="chevronDown" width={11} height={8} />
</div>
);
}
export default Select