import ShortViewText from '@/components/ShortViewText';
import { useLang } from '@/lang/Lang';
import { useLLText } from '@/lang/localizationService';

type ShortViewLLProps = {
    value: string;
    className?: string;
    maxLength?: number;
    type?: 'tail' | 'middle' | 'head';
    truncateByWidth?: boolean;
};

const ShortViewLL = ({ value, className, maxLength, type, truncateByWidth }: ShortViewLLProps) => {
    const lang = useLang();
    const text = useLLText(value, lang);

    return (
        <ShortViewText
            text={text}
            className={className}
            maxLength={maxLength}
            type={type}
            truncateByWidth={truncateByWidth}
        />
    );
};

export default ShortViewLL;
