WordPress custom post_status after 6.6 version

Can you post your js or try this?

import { addFilter } from '@wordpress/hooks';

addFilter(
    'editor.PostStatus.statuses',
    'sq/add-custom-post-status', // custom filter name
    (statuses) => {
        return [
            ...statuses, // save old statuses
            { // add new status
                slug: 'prepare',
                label: 'Prepare',
                labelShort: 'Prepare',
                public: false,
            },
        ];
    }
);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)