29 lines
No EOL
932 B
TypeScript
29 lines
No EOL
932 B
TypeScript
import React from 'react'
|
|
import { Button, PageTitle } from 'UI'
|
|
import FFlagsSearch from "Components/FFlags/FFlagsSearch";
|
|
import { useHistory } from "react-router";
|
|
import { newFFlag, withSiteId } from 'App/routes';
|
|
import { observer } from 'mobx-react-lite';
|
|
|
|
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 variant="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; |