-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSelectedTechItem.tsx
More file actions
33 lines (30 loc) · 981 Bytes
/
SelectedTechItem.tsx
File metadata and controls
33 lines (30 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { LuX } from 'react-icons/lu';
import TechStackItem from '@/features/widgets/techStack/components/TechStackItem';
import { Button } from '@/common/components/shadcn/button';
interface SelectedTechItemProps {
name: string;
slug: string;
color: string;
onRemove: () => void;
}
// 선택된 기술 스택 아이템 컴포넌트
function SelectedTechItem({
name,
slug,
color,
onRemove,
}: SelectedTechItemProps) {
return (
<div className="group relative flex flex-col items-center justify-center gap-2">
<Button
size="icon"
onClick={onRemove}
className="bg-destructive text-destructive-foreground hover:bg-destructive hover:text-destructive-foreground absolute -top-2 -right-2 hidden size-5 cursor-pointer rounded-full group-hover:flex"
>
<LuX className="size-3" color="white" />
</Button>
<TechStackItem name={name} slug={slug} color={color} />
</div>
);
}
export default SelectedTechItem;