import { jsxs as _jsxs } from "react/jsx-runtime";
// packages/ui/src/internal/layout/components/footer/FooterCopyright.tsx
/**
 * @fileoverview FooterCopyright Component
 * @description Copyright notice with year and app name, uses translations
 *
 * @version 0.0.1
 * @since 0.0.1
 * @author AMBROISE PARK Consulting
 */
import { cn } from '@donotdev/components';
import { useTranslation, useAppConfig } from '@donotdev/core';
/**
 * FooterCopyright - Copyright notice component
 *
 * Uses useTranslation internally, so it re-renders when language changes.
 * If appName not provided, reads from app config automatically.
 *
 * @version 0.0.1
 * @since 0.0.1
 * @author AMBROISE PARK Consulting
 */
export const FooterCopyright = ({ appName, year = new Date().getFullYear(), className, }) => {
    const { t } = useTranslation('dndev');
    const app = useAppConfig('app');
    const resolvedAppName = appName || app?.name || 'App';
    return (_jsxs("span", { className: cn(className), style: {
            flexShrink: 0,
            color: 'var(--muted-foreground)',
            fontSize: 'var(--font-size-xs)',
        }, children: ["\u00A9 ", year, " ", resolvedAppName, ". ", t('footer.legal.allRightsReserved')] }));
};
export default FooterCopyright;
