mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-23 15:14:23 +00:00
26 lines
677 B
TypeScript
26 lines
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>
|
||
|
)
|
||
|
}
|