import { Alert } from '@codecademy/gamut'; import { ComponentProps } from 'react'; type AlertProps = Required>; type LimitedCTAProps = 'target' | 'children' | 'onClick' | 'text'; type ExtractableCTAProps = { [Prop in Extract]?: AlertProps['cta'][Prop]; }; export type PageAlert = { cta?: ExtractableCTAProps & { href?: string; }; onClose?: () => void; type: Exclude; message: string; permanent?: boolean; }; export {};