openreplay/frontend/app/components/FFlags/FFlagsListHeader.tsx
Delirium 968a3eefde
ui: migrating old components -> ant (#3060)
* ui: migrating old components -> ant

* ui: moving input, tooltip, toggler, checkbox... -> Toggler\s*(.)? from 'UI

* ui: more components moved

* ui: move popover to ant
2025-02-24 16:11:44 +01:00

29 lines
No EOL
907 B
TypeScript

import React from 'react'
import { PageTitle } from 'UI'
import { Button } from 'antd'
import FFlagsSearch from "Components/FFlags/FFlagsSearch";
import { useHistory } from "react-router";
import { newFFlag, withSiteId } from 'App/routes';
function FFlagsListHeader({ siteId }: { siteId: string }) {
const history = useHistory();
return (
<div className="flex items-center justify-between px-6">
<div className="flex items-center mr-3 gap-2">
<PageTitle title="Feature Flags" />
</div>
<div className="ml-auto flex items-center">
<Button type="primary" onClick={() => history.push(withSiteId(newFFlag(), siteId))}>
Create Feature Flag
</Button>
<div className="mx-2"></div>
<div className="w-1/4" style={{ minWidth: 300 }}>
<FFlagsSearch />
</div>
</div>
</div>
)
}
export default FFlagsListHeader;