Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
import React from 'react';
import Card from '@/components/shared/Card';
import SectionTitle from '@/components/shared/SectionTitle';
/**
* What the security page can ask a section to do.
*/
export type SectionHandle = {
/** Reload the section's data. */
loadData: () => Promise<void>;
};
/**
* "g" date format: short date and time in the user's locale.
*/
export const formatDateTime = (value: string): string => new Date(value).toLocaleString(undefined, { dateStyle: 'short', timeStyle: 'short' });
/**
* Card holding one section of the security settings page.
*/
const SecuritySection: React.FC<{ title: string; children: React.ReactNode }> = ({ title, children }) => (
<Card>
<SectionTitle className="mb-2">{title}</SectionTitle>
{children}
</Card>
);
export default SecuritySection;