import Link from 'next/link'
import { Button, IconAlertCircle } from 'ui'
import { Admonition } from 'ui-patterns/admonition'
import InformationBox from 'components/ui/InformationBox'
import type { MemberWithFreeProjectLimit } from 'data/organizations/free-project-limit-check-query'
interface FreeProjectLimitWarningProps {
membersExceededLimit: MemberWithFreeProjectLimit[]
orgSlug: string
}
const FreeProjectLimitWarning = ({
membersExceededLimit,
orgSlug,
}: FreeProjectLimitWarningProps) => {
return (
<>
The following members have reached their maximum limits for the number of active free
plan projects within organizations where they are an administrator or owner:
These members will need to either delete, pause, or upgrade one or more of these
projects before you're able to create a free project within this organization.
{membersExceededLimit.map((member, idx: number) => (
The following members have reached their maximum limits for the number of active free plan projects within organizations where they are an administrator or owner:
These members will need to either delete, pause, or upgrade one or more of these projects before you're able to create a free project within this organization.