27 lines
833 B
TypeScript
27 lines
833 B
TypeScript
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
|
import { EmptyScreen, Avatar } from "@calcom/ui";
|
|
|
|
export type UnpublishedEntityProps = {
|
|
teamSlug?: string | null;
|
|
orgSlug?: string | null;
|
|
name?: string | null;
|
|
};
|
|
|
|
export function UnpublishedEntity(props: UnpublishedEntityProps) {
|
|
const { t } = useLocale();
|
|
const slug = props.orgSlug || props.teamSlug;
|
|
return (
|
|
<div className="m-8 flex items-center justify-center">
|
|
<EmptyScreen
|
|
avatar={<Avatar alt={slug ?? ""} imageSrc={`/team/${slug}/avatar.png`} size="lg" />}
|
|
headline={t("team_is_unpublished", {
|
|
team: props.name,
|
|
})}
|
|
description={t("team_is_unpublished_description", {
|
|
entity: props.orgSlug ? t("organization").toLowerCase() : t("team").toLowerCase(),
|
|
})}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|