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