export function normalizeSlug(value?: string | null): string | null {
  if (!value) return null;

  const trimmed = value.trim();
  if (!trimmed) return null;

  return trimmed.replace(/^\/+|\/+$/g, '').toLowerCase();
}
