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

37 lines
797 B
TypeScript
Raw Normal View History

2025-01-28 17:46:16 -05:00
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 (
2025-02-04 17:21:03 -05:00
<div className="relative w-full h-editor flex">
<div
className={cn(
'h-full w-8 flex justify-center p-1',
'border-r border-headscale-400 dark:border-headscale-800',
)}
>
<div
aria-hidden
className={cn(
'h-5 w-5 animate-spin rounded-full',
'border-headplane-900 dark:border-headplane-100',
'border-2 border-t-transparent dark:border-t-transparent',
)}
/>
</div>
<textarea
readOnly
className={cn(
2025-02-04 17:21:03 -05:00
'w-full h-editor font-mono resize-none text-sm',
'bg-headplane-50 dark:bg-headplane-950 opacity-60',
'pl-1 pt-1 leading-snug',
)}
value={acl}
/>
</div>
2024-12-31 10:30:14 +05:30
);
2024-04-17 17:42:44 -04:00
}