22 lines
514 B
TypeScript
22 lines
514 B
TypeScript
import { IonCol, IonRouterLink, IonRow } from '@ionic/react';
|
|
|
|
interface ActionProps {
|
|
message: string;
|
|
text: string;
|
|
link: string;
|
|
}
|
|
|
|
export const Action = (props: ActionProps): React.JSX.Element => (
|
|
<IonRow className="ion-text-center ion-justify-content-center">
|
|
<IonCol size="12">
|
|
<p>
|
|
{props.message}
|
|
<IonRouterLink className="custom-link" routerLink={props.link}>
|
|
{' '}
|
|
{props.text} →
|
|
</IonRouterLink>
|
|
</p>
|
|
</IonCol>
|
|
</IonRow>
|
|
);
|