2025-10-22 12:20:19 +08:00
|
|
|
import { Card, CardContent, CardHeader } from '@/components/ui/card';
|
2024-11-26 16:55:44 +08:00
|
|
|
import { PropsWithChildren } from 'react';
|
|
|
|
|
|
|
|
|
|
export function Title({ children }: PropsWithChildren) {
|
|
|
|
|
return <span className="font-bold text-xl">{children}</span>;
|
|
|
|
|
}
|
2025-10-22 12:20:19 +08:00
|
|
|
|
|
|
|
|
type ProfileSettingWrapperCardProps = {
|
|
|
|
|
header: React.ReactNode;
|
|
|
|
|
} & PropsWithChildren;
|
|
|
|
|
|
|
|
|
|
export function ProfileSettingWrapperCard({
|
|
|
|
|
header,
|
|
|
|
|
children,
|
|
|
|
|
}: ProfileSettingWrapperCardProps) {
|
|
|
|
|
return (
|
2025-10-27 15:15:12 +08:00
|
|
|
<Card className="w-full border-border-button bg-transparent relative">
|
2025-10-22 12:20:19 +08:00
|
|
|
<CardHeader className="border-b border-border-button p-5">
|
|
|
|
|
{header}
|
|
|
|
|
</CardHeader>
|
|
|
|
|
<CardContent className="p-5">{children}</CardContent>
|
|
|
|
|
</Card>
|
|
|
|
|
);
|
|
|
|
|
}
|