mirror of
https://github.com/supabase/supabase.git
synced 2026-10-15 06:09:08 +03:00
47 lines
1.5 KiB
TypeScript
47 lines
1.5 KiB
TypeScript
import { Search } from 'lucide-react'
|
|
import { useState } from 'react'
|
|
|
|
import {
|
|
ScaffoldActionsContainer,
|
|
ScaffoldActionsGroup,
|
|
ScaffoldContainerLegacy,
|
|
ScaffoldFilterAndContent,
|
|
ScaffoldSectionContent,
|
|
ScaffoldTitle,
|
|
} from 'components/layouts/Scaffold'
|
|
import { DocsButton } from 'components/ui/DocsButton'
|
|
import { Input } from 'ui-patterns/DataInputs/Input'
|
|
import { InviteMemberButton } from './InviteMemberButton'
|
|
import MembersView from './MembersView'
|
|
|
|
export const TeamSettings = () => {
|
|
const [searchString, setSearchString] = useState('')
|
|
|
|
return (
|
|
<ScaffoldContainerLegacy>
|
|
<ScaffoldTitle>Team</ScaffoldTitle>
|
|
<ScaffoldFilterAndContent>
|
|
<ScaffoldActionsContainer className="w-full flex-col md:flex-row gap-2 justify-between">
|
|
<Input
|
|
size="tiny"
|
|
autoComplete="off"
|
|
icon={<Search size={12} />}
|
|
value={searchString}
|
|
onChange={(e: any) => setSearchString(e.target.value)}
|
|
name="email"
|
|
id="email"
|
|
placeholder="Filter members"
|
|
/>
|
|
<ScaffoldActionsGroup className="w-full md:w-auto">
|
|
<DocsButton href="https://supabase.com/docs/guides/platform/access-control" />
|
|
<InviteMemberButton />
|
|
</ScaffoldActionsGroup>
|
|
</ScaffoldActionsContainer>
|
|
<ScaffoldSectionContent className="w-full">
|
|
<MembersView searchString={searchString} />
|
|
</ScaffoldSectionContent>
|
|
</ScaffoldFilterAndContent>
|
|
</ScaffoldContainerLegacy>
|
|
)
|
|
}
|