Files
tcc-vamos-frontend/src/components/Action.tsx
Matheus Albino Brunhara c0b26741bb Componentizando header
2022-09-03 16:38:13 -03:00

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} &rarr;
</IonRouterLink>
</IonCol>
</IonRow>
);