2024-05-04 15:03:21 -04:00
|
|
|
import { InfoIcon } from '@primer/octicons-react'
|
2024-08-04 11:32:29 -04:00
|
|
|
import type { ReactNode } from 'react'
|
2024-03-29 21:46:21 -04:00
|
|
|
|
2024-08-04 11:32:29 -04:00
|
|
|
import { cn } from '~/utils/cn'
|
|
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
|
className?: string
|
|
|
|
|
children: ReactNode
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default function Notice({ children, className }: Props) {
|
2024-03-29 21:46:21 -04:00
|
|
|
return (
|
2024-08-04 11:32:29 -04:00
|
|
|
<div className={cn(
|
|
|
|
|
'p-4 rounded-md w-full flex items-center gap-3',
|
|
|
|
|
'bg-ui-200 dark:bg-ui-800',
|
|
|
|
|
className,
|
2024-03-29 21:46:21 -04:00
|
|
|
)}
|
|
|
|
|
>
|
2024-08-04 11:32:29 -04:00
|
|
|
<InfoIcon className="h-6 w-6 text-ui-700 dark:text-ui-200" />
|
2024-03-29 21:46:21 -04:00
|
|
|
{children}
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|