19 أسطر
411 B
TypeScript
19 أسطر
411 B
TypeScript
import { Card, CardContent } from "@/components/ui/card";
|
|
import { EmptyState } from "@/components/ui/empty-state";
|
|
|
|
export function NoPermissionState({
|
|
description,
|
|
title = "Access restricted",
|
|
}: {
|
|
description: string;
|
|
title?: string;
|
|
}) {
|
|
return (
|
|
<Card>
|
|
<CardContent className="p-6">
|
|
<EmptyState title={title} description={description} />
|
|
</CardContent>
|
|
</Card>
|
|
);
|
|
}
|