package ui

type CardProps struct {
	Header templ.Component
	Body   templ.Component
	Footer templ.Component
}

templ Card(props CardProps) {
	<section class="ui-card">
		if props.Header != nil {
			<div class="ui-card-header">
				@props.Header
			</div>
		}
		if props.Body != nil {
			<div class="ui-card-body">
				@props.Body
			</div>
		}
		if props.Footer != nil {
			<div class="ui-card-footer">
				@props.Footer
			</div>
		}
	</section>
}
