1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-22 22:54:22 +00:00
festa/components/view/ViewLanding.tsx
2022-06-04 05:13:19 +02:00

26 lines
No EOL
677 B
TypeScript

import { ReactNode } from "react"
type ViewLandingProps = {
title: ReactNode
subtitle: ReactNode
actions: ReactNode
}
export function ViewLanding(props: ViewLandingProps) {
return (
<main className="view-landing">
<hgroup className="view-landing-titles">
<h1 className="view-landing-titles-title">
{props.title}
</h1>
<h2 className="view-landing-titles-subtitle">
{props.subtitle}
</h2>
</hgroup>
<div className="view-landing-actions">
{props.actions}
</div>
</main>
)
}