headplane/app/routes/acls/components/fallback.tsx

25 lines
538 B
TypeScript
Raw Normal View History

2024-12-31 10:30:14 +05:30
import Spinner from '~/components/Spinner';
import { cn } from '~/utils/cn';
2024-04-17 17:42:44 -04:00
interface Props {
2024-12-31 10:30:14 +05:30
readonly acl: string;
2024-04-17 17:42:44 -04:00
}
export default function Fallback({ acl }: Props) {
2024-04-17 17:42:44 -04:00
return (
<div className="inline-block relative w-full h-editor">
<Spinner className="w-4 h-4 absolute p-2" />
<textarea
readOnly
className={cn(
'w-full h-editor font-mono resize-none',
'text-sm text-gray-600 dark:text-gray-300',
'bg-ui-100 dark:bg-ui-800',
'pl-10 pt-1 leading-snug',
)}
value={acl}
/>
</div>
2024-12-31 10:30:14 +05:30
);
2024-04-17 17:42:44 -04:00
}