Files
PyUIBuilder/src/components/header.js

44 lines
1.1 KiB
JavaScript
Raw Normal View History

2024-09-08 21:58:53 +05:30
import { useState } from "react"
2024-09-13 19:24:03 +05:30
import { Select, Input, Button } from "antd"
import { DownloadOutlined, DownOutlined } from "@ant-design/icons"
2024-09-08 21:58:53 +05:30
const items = [
{
key: 'tkinter',
label: 'tkinter',
},
{
key: 'customtk',
label: 'customtk',
},
]
function Header(props){
const [projectName, setProjectName] = useState("project")
return (
<div className={`tw-w-full tw-bg-primaryBg tw-p-2 tw-flex tw-place-items-center
${props.className||''}`}>
<Select
defaultValue={"tkinter"}
options={items}
className="tw-min-w-[150px]"
/>
2024-09-13 19:24:03 +05:30
<div className="tw-ml-auto tw-flex tw-gap-2 tw-place-content-center">
2024-09-08 21:58:53 +05:30
<Input value={projectName} onChange={(e) => setProjectName(e.target.value)} placeholder="project name"/>
2024-09-13 19:24:03 +05:30
<Button icon={<DownloadOutlined />} >
Export code
</Button>
2024-09-08 21:58:53 +05:30
</div>
</div>
)
}
export default Header