Add: - Component alert system - Page collaboration Id Fix: - Box base - Menu drawer dibuatkan interface # No Issue '
21 lines
367 B
TypeScript
21 lines
367 B
TypeScript
import { Href } from "expo-router";
|
|
import BaseBox from "./BaseBox";
|
|
|
|
export default function BoxWithHeaderSection({
|
|
children,
|
|
href,
|
|
onPress,
|
|
}: {
|
|
children: React.ReactNode;
|
|
href?: Href;
|
|
onPress?: () => void;
|
|
}) {
|
|
return (
|
|
<>
|
|
<BaseBox href={href} onPress={onPress} style={{ paddingTop: 5 }}>
|
|
{children}
|
|
</BaseBox>
|
|
</>
|
|
);
|
|
}
|