import { View} from 'react-native';
import { Heading } from '@/components/ui/heading';
import { Link } from 'expo-router';
import { FlatList } from 'react-native';
import {NoticeCard} from "@/components/NoticeCard";
import { Box } from '@/components/ui/box';
import { HStack } from "@/components/ui/hstack"
import { VStack } from '@/components/ui/vstack';
import { Button, ButtonText } from "@/components/ui/button"
export function NoticeSection({ notices, title, ctaLink=''}) {
const rows = [];
for (let i = 0; i < notices.length; i += 2) {
rows.push(
{notices[i + 1] && }
);
}
return (
{title}
{rows}
{ctaLink && (
)}
);
}