mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-28 19:49:25 +01:00
16 lines
409 B
TypeScript
16 lines
409 B
TypeScript
import Alert, { AlertProps } from './Alert'
|
|
import StyledButton, { StyledButtonProps } from './StyledButton'
|
|
|
|
export type AlertWithButtonProps = {
|
|
buttonProps: StyledButtonProps
|
|
} & AlertProps
|
|
|
|
const AlertWithButton = ({ buttonProps, ...alertProps }: AlertWithButtonProps) => {
|
|
return (
|
|
<Alert {...alertProps}>
|
|
<StyledButton {...buttonProps} />
|
|
</Alert>
|
|
)
|
|
}
|
|
|
|
export default AlertWithButton |