17 lines
245 B
Text
17 lines
245 B
Text
---
|
|
import type { ValidationError } from '@astro-reactive/common';
|
|
|
|
export interface Props {
|
|
errors: ValidationError[];
|
|
}
|
|
|
|
const { errors = [] } = Astro.props;
|
|
---
|
|
|
|
{
|
|
errors.map((error) => (
|
|
<li>
|
|
{error.error} {error.limit}
|
|
</li>
|
|
))
|
|
}
|