computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.3 KiB
40 lines
1.3 KiB
1 year ago
|
import { Modal } from '../Modal';
|
||
|
import { Map, Shapes } from 'lucide-react';
|
||
|
|
||
|
type PickRoadmapOptionModalProps = {
|
||
|
onClose: () => void;
|
||
|
showDefaultRoadmapsModal: () => void;
|
||
|
showCreateCustomRoadmapModal: () => void;
|
||
|
};
|
||
|
|
||
|
export function PickRoadmapOptionModal(props: PickRoadmapOptionModalProps) {
|
||
|
const { onClose, showDefaultRoadmapsModal, showCreateCustomRoadmapModal } =
|
||
|
props;
|
||
|
|
||
|
return (
|
||
|
<Modal onClose={onClose} bodyClassName="p-4">
|
||
|
<h2 className="mb-0.5 text-left text-2xl font-semibold">Pick an Option</h2>
|
||
|
<p className="text-left text-sm text-gray-500 mb-4">
|
||
|
Choose from default roadmaps or create from scratch.
|
||
|
</p>
|
||
|
|
||
|
<div className="flex flex-col gap-2">
|
||
|
<button
|
||
|
className="text-base flex items-center rounded-md border border-gray-300 p-2 px-4 text-left font-medium hover:bg-gray-100"
|
||
|
onClick={showDefaultRoadmapsModal}
|
||
|
>
|
||
|
<Map className="mr-2 inline-block" size={20} />
|
||
|
Use a Default Roadmap
|
||
|
</button>
|
||
|
<button
|
||
|
className="text-base flex items-center rounded-md border border-gray-300 p-2 px-4 text-left font-medium hover:bg-gray-100"
|
||
|
onClick={showCreateCustomRoadmapModal}
|
||
|
>
|
||
|
<Shapes className="mr-2 inline-block" size={20} />
|
||
|
Create from Scratch
|
||
|
</button>
|
||
|
</div>
|
||
|
</Modal>
|
||
|
);
|
||
|
}
|