headplane/app/components/Notice.tsx

24 lines
493 B
TypeScript
Raw Normal View History

2024-12-31 10:30:14 +05:30
import { InfoIcon } from '@primer/octicons-react';
import type { ReactNode } from 'react';
import { cn } from '~/utils/cn';
interface Props {
2024-12-31 10:30:14 +05:30
className?: string;
children: ReactNode;
}
export default function Notice({ children, className }: Props) {
return (
2024-12-31 10:30:14 +05:30
<div
className={cn(
'p-4 rounded-md w-full flex items-center gap-3',
'bg-ui-200 dark:bg-ui-800',
className,
)}
>
<InfoIcon className="h-6 w-6 text-ui-700 dark:text-ui-200" />
{children}
</div>
2024-12-31 10:30:14 +05:30
);
}