({projectName, onProjectNameChange, framework, onFrameworkChange,
onExportClick, className=''})
| 20 | |
| 21 | |
| 22 | function Header({projectName, onProjectNameChange, framework, onFrameworkChange, |
| 23 | onExportClick, className=''}){ |
| 24 | |
| 25 | |
| 26 | return ( |
| 27 | <div className={`tw-w-full tw-bg-primaryBg tw-gap-2 tw-overflow-x-auto tw-p-2 tw-flex tw-place-items-center |
| 28 | ${className||''}`}> |
| 29 | |
| 30 | <div className="tw-flex tw-gap-2 tw-place-content-center"> |
| 31 | <Select |
| 32 | // defaultValue={framework} |
| 33 | value={framework} |
| 34 | options={items} |
| 35 | // onSelect={(key) => {console.log("value: ", key); onFrameworkChange(key); }} |
| 36 | onChange={(key) => {onFrameworkChange(key)}} |
| 37 | className="tw-min-w-[150px]" |
| 38 | /> |
| 39 | <VideoPopUp> |
| 40 | <div className="tw-p-1 tw-w-full tw-outline-none tw-bg-transparent tw-border-[1px] |
| 41 | tw-border-gray-400 tw-rounded-md tw-no-underline tw-border-solid hover:tw-bg-[#9333EA] |
| 42 | hover:tw-text-white tw-duration-200 tw-flex tw-gap-1 |
| 43 | tw-text-black tw-text-center tw-px-4 tw-text-sm tw-cursor-pointer"> |
| 44 | Watch demo |
| 45 | <PlayCircleFilled className="tw-text-lg"/> |
| 46 | </div> |
| 47 | </VideoPopUp> |
| 48 | </div> |
| 49 | <div className="tw-ml-auto tw-flex tw-gap-2 tw-place-content-center"> |
| 50 | <button data-tally-open="mVDY7N" data-tally-layout="modal" data-tally-emoji-text="👋" |
| 51 | data-tally-emoji-animation="wave" className="tw-p-1 tw-w-full tw-outline-none tw-bg-transparent tw-border-[1px] |
| 52 | tw-border-gray-400 tw-rounded-md tw-no-underline tw-border-solid hover:tw-bg-[#9333EA] |
| 53 | hover:tw-text-white tw-duration-200 |
| 54 | tw-text-black tw-text-center tw-px-4 tw-text-sm tw-cursor-pointer"> |
| 55 | Get Updates |
| 56 | </button> |
| 57 | <Premium className="tw-text-2xl tw-bg-purple-600 tw-text-center |
| 58 | tw-w-[40px] tw-min-w-[40px] tw-h-[35px] tw-rounded-md |
| 59 | tw-cursor-pointer tw-text-white |
| 60 | tw-transition-all |
| 61 | hover:tw-scale-[1.2]"> |
| 62 | <CrownFilled /> |
| 63 | </Premium> |
| 64 | <Input value={projectName} onChange={(e) => onProjectNameChange(e.target.value)} placeholder="project name"/> |
| 65 | <Button icon={<DownloadOutlined />} onClick={onExportClick}> |
| 66 | Export code |
| 67 | </Button> |
| 68 | </div> |
| 69 | |
| 70 | </div> |
| 71 | ) |
| 72 | |
| 73 | } |
| 74 | |
| 75 | export default Header |
nothing calls this directly
no outgoing calls
no test coverage detected